We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf47487 commit 0cd0866Copy full SHA for 0cd0866
src/editor.html
@@ -1537,7 +1537,19 @@
1537
1538
}
1539
1540
- WebViewBridge.send(JSON.stringify({type: 'SELECTION_CHANGE', data: {items: items}}))
+ notifyIfSelectionHasChanged(items);
1541
+ }
1542
+
1543
+ function notifyIfSelectionHasChanged(items) {
1544
+ var selectionChangeMessage = JSON.stringify({
1545
+ data: {items: items},
1546
+ type: 'SELECTION_CHANGE'
1547
+ });
1548
1549
+ if (selectionChangeMessage !== zss_editor.previousSelectionChangeMessage) {
1550
+ WebViewBridge.send(selectionChangeMessage);
1551
+ zss_editor.previousSelectionChangeMessage = selectionChangeMessage;
1552
1553
1554
1555
zss_editor.focusContent = function() {
0 commit comments