|
@@ -38,6 +38,7 @@ zss_editor.updateScrollOffset = false;
|
38
|
38
|
*/
|
39
|
39
|
zss_editor.init = function() {
|
40
|
40
|
|
|
41
|
+
|
41
|
42
|
$('#zss_editor_content').on('touchend', function(e) {
|
42
|
43
|
zss_editor.enabledEditingItems(e);
|
43
|
44
|
var clicked = $(e.target);
|
|
@@ -103,13 +104,13 @@ zss_editor.updateOffset = function() {
|
103
|
104
|
|
104
|
105
|
// This will show up in the XCode console as we are able to push this into an NSLog.
|
105
|
106
|
zss_editor.debug = function(msg) {
|
106
|
|
- WebViewBridge.send('debug://'+msg);
|
|
107
|
+ WebViewBridge.send(JSON.stringify({type: 'LOG', data: msg}));
|
107
|
108
|
}
|
108
|
109
|
|
109
|
110
|
|
110
|
111
|
zss_editor.setScrollPosition = function() {
|
111
|
112
|
var position = window.pageYOffset;
|
112
|
|
- WebViewBridge.send('scroll://'+position);
|
|
113
|
+ WebViewBridge.send(JSON.stringify({type: 'SCROLL', data: position}));
|
113
|
114
|
}
|
114
|
115
|
|
115
|
116
|
|