|
@@ -702,6 +702,14 @@ zss_editor.enabledEditingItems = function(e) {
|
702
|
702
|
WebViewBridge.send(JSON.stringify({type: 'SELECTION_CHANGE', data: {items}}))
|
703
|
703
|
}
|
704
|
704
|
|
|
705
|
+zss_editor.focusContent = function() {
|
|
706
|
+ zss_editor.focusEditor('zss_editor_content');
|
|
707
|
+}
|
|
708
|
+
|
|
709
|
+zss_editor.focusTitle = function() {
|
|
710
|
+ zss_editor.focusEditor('zss_editor_title');
|
|
711
|
+}
|
|
712
|
+
|
705
|
713
|
zss_editor.focusEditor = function(editorId) {
|
706
|
714
|
|
707
|
715
|
// the following was taken from http://stackoverflow.com/questions/1125292/how-to-move-cursor-to-end-of-contenteditable-entity/3866442#3866442
|