Skip to content

Commit 519d241

Browse files
committed
mention-support: Prettify all files.
2 parents f3b11eb + 828024d commit 519d241

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/wix/react-native-zss-rich-text-editor.git"
66
},
7-
"version": "1.3.2",
7+
"version": "1.3.3",
88
"description": "React Native Wrapper for ZSSRichTextEditor",
99
"main": "index.js",
1010
"license": "SEE LICENSE IN LICENSE",

src/RichTextEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ export default class RichTextEditor extends Component {
115115
const { marginTop = 0, marginBottom = 0 } = this.props.style;
116116
const spacing = marginTop + marginBottom + top + bottom;
117117

118-
const editorAvailableHeight =
119-
Dimensions.get('window').height - keyboardHeight - spacing;
118+
const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight * 2 - spacing;
120119
this.setEditorHeight(editorAvailableHeight);
121120
}
122121

src/assets/editor.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8705,8 +8705,11 @@
87058705
// Next line is comented to prevent deselecting selection. It looks like work but if there are any issues will appear then uconmment it as well as code above.
87068706
//sel.collapseToStart();
87078707
var range = sel.getRangeAt(0);
8708-
var span = document.createElement('span'); // something happening here preventing selection of elements
8709-
range.collapse(false);
8708+
var span = document.createElement('span');// something happening here preventing selection of elements
8709+
if (zss_editor.isUsingiOS) {
8710+
range.collapse(false);
8711+
}
8712+
87108713
range.insertNode(span);
87118714
var topPosition = span.offsetTop;
87128715
span.parentNode.removeChild(span);

0 commit comments

Comments
 (0)