Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…rg-mobile into issue/372-add-enter-key-detection-to-Title-block

* 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile:
  Update bundle
  bump aztec android to v1.3.18 (#498)
  Update GB hash
  [Android] - Make sure mContentChanged has the correct value when asking content from the React side. This was necessary since the call to retrieve content and title are separate on Android.
  The HTML editor background is now white.
  Make sure to use `setContent` when initializating the GlueCode
  Dock the keyboard hide button to the right side of the screen (#480)
  RNAztecView: Removing branch spec from podspec
  Moving RNTAztecView.podspec to the gutenberg-mobile root dir.
  Aztec iOS: Force send height information to JS after pasting text

# Conflicts:
#	gutenberg
  • Loading branch information
daniloercoli committed Jan 25, 2019
2 parents 9291516 + e78eed0 commit 33975e9
Show file tree
Hide file tree
Showing 14 changed files with 757 additions and 801 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion bin/generate-podspecs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ node_modules/react-native/ReactCommon/yoga/yoga.podspec
node_modules/react-native/third-party-podspecs/Folly.podspec
node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
node_modules/react-native/third-party-podspecs/glog.podspec
react-native-aztec/RNTAztecView.podspec
EOP
)

Expand Down
724 changes: 363 additions & 361 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

736 changes: 369 additions & 367 deletions bundle/ios/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion react-native-aztec/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
wordpressUtilsVersion = '1.22'
espressoVersion = '3.0.1'

aztecVersion = 'v1.3.14'
aztecVersion = 'v1.3.18'
}

repositories {
Expand Down
2 changes: 2 additions & 0 deletions react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ extension RCTAztecView: UITextViewDelegate {
forceTypingAttributesIfNeeded()
propagateFormatChanges()
propagateContentChanges()
//Necessary to send height information to JS after pasting text.
textView.setNeedsLayout()
}

func textViewDidBeginEditing(_ textView: UITextView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ protected List<ReactPackage> getPackages(final OnMediaLibraryButtonListener onMe
public void responseHtml(String title, String html, boolean changed) {
mContentHtml = html;
mTitle = title;
mContentChanged = changed;
// This code is called twice. When getTitle and getContent are called.
// Make sure mContentChanged has the correct value (true) if one of the call returned with changes.
mContentChanged = mContentChanged || changed;
mGetContentCountDownLatch.countDown();
}

Expand Down

This file was deleted.

13 changes: 7 additions & 6 deletions src/block-management/block-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { compose } from '@wordpress/compose';
import { Toolbar, ToolbarButton } from '@wordpress/components';
import { BlockFormatControls, BlockControls } from '@wordpress/editor';
import { __ } from '@wordpress/i18n';
import KeyboardHideButton from '../components/keyboard-hide-button';

import styles from './block-toolbar.scss';

Expand Down Expand Up @@ -65,14 +64,16 @@ export class BlockToolbar extends Component<PropsType> {
onClick={ redo }
/>
</Toolbar>
{ showKeyboardHideButton && ( <Toolbar>
<KeyboardHideButton
onPress={ this.onKeyboardHide }
/>
</Toolbar> ) }
<BlockControls.Slot />
<BlockFormatControls.Slot />
</ScrollView>
{ showKeyboardHideButton &&
( <Toolbar passedStyle={ styles.keyboardHideContainer }>
<ToolbarButton
icon="keyboard-hide"
onClick={ this.onKeyboardHide }
/>
</Toolbar> ) }
</View>
);
}
Expand Down
9 changes: 9 additions & 0 deletions src/block-management/block-toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@
border-top-color: #e9eff3;
border-top-width: 1;
}

.keyboardHideContainer {
padding-right: 0px;
padding-left: 0px;
padding-top: 4px;
width: 44;
justify-content: center;
align-items: center;
}
2 changes: 1 addition & 1 deletion src/components/html-text-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.htmlView {
font-family: $default-monospace-font;
flex: 1;
background-color: #eee;
background-color: white;
padding-left: 8;
padding-right: 8;
padding-top: 8;
Expand Down
32 changes: 0 additions & 32 deletions src/components/keyboard-hide-button.js

This file was deleted.

0 comments on commit 33975e9

Please sign in to comment.