|
@@ -916,7 +916,7 @@
|
916
|
916
|
whenPastingInsertAsPlainText('zss_editor_title');
|
917
|
917
|
whenPastingInsertAsPlainText('zss_editor_content');
|
918
|
918
|
|
919
|
|
- zss_editor.focusContent();
|
|
919
|
+ // zss_editor.focusContent();
|
920
|
920
|
|
921
|
921
|
setTimeout(function() {
|
922
|
922
|
ReactNativeWebView.postMessage(JSON.stringify({type: 'ZSS_INITIALIZED'}))
|
|
@@ -1355,6 +1355,7 @@
|
1355
|
1355
|
zss_editor.insertEmoji = function(url) {
|
1356
|
1356
|
zss_editor.restorerange();
|
1357
|
1357
|
document.execCommand('insertHTML', false, '<img class="emoji" src="' + encodeHtmlEntities(url) + '"/>');
|
|
1358
|
+ zss_editor.blurContentEditor()
|
1358
|
1359
|
zss_editor.enabledEditingItems();
|
1359
|
1360
|
}
|
1360
|
1361
|
|
|
@@ -1626,6 +1627,11 @@
|
1626
|
1627
|
editor.focus(callbackHandler);
|
1627
|
1628
|
}
|
1628
|
1629
|
|
|
1630
|
+ function addBlurEvent(editorId, callbackHandler) {
|
|
1631
|
+ var editor = $('#' + editorId);
|
|
1632
|
+ editor.blur(callbackHandler);
|
|
1633
|
+ }
|
|
1634
|
+
|
1629
|
1635
|
zss_editor.setTitleFocusHandler = function() {
|
1630
|
1636
|
addFocusEvent('zss_editor_title', function() {
|
1631
|
1637
|
ReactNativeWebView.postMessage(JSON.stringify({type: 'TITLE_FOCUSED'}))
|
|
@@ -1638,6 +1644,12 @@
|
1638
|
1644
|
});
|
1639
|
1645
|
}
|
1640
|
1646
|
|
|
1647
|
+ zss_editor.setContentBlurHandler = function() {
|
|
1648
|
+ addBlurEvent('zss_editor_content', function() {
|
|
1649
|
+ ReactNativeWebView.postMessage(JSON.stringify({type: 'CONTENT_BLUR'}))
|
|
1650
|
+ });
|
|
1651
|
+ }
|
|
1652
|
+
|
1641
|
1653
|
zss_editor.setEditorHeight = function(editorHeight) {
|
1642
|
1654
|
zss_editor.editorHeight = editorHeight;
|
1643
|
1655
|
}
|
|
@@ -1695,6 +1707,7 @@
|
1695
|
1707
|
padding-left: 10px;
|
1696
|
1708
|
padding-right: 10px;
|
1697
|
1709
|
line-height: 20px;
|
|
1710
|
+ caret-color:rgb(90, 149, 211)
|
1698
|
1711
|
}
|
1699
|
1712
|
|
1700
|
1713
|
#zss_editor_title {
|