diff --git a/test/test_selection_api.html b/test/test_selection_api.html new file mode 100644 index 0000000..7500166 --- /dev/null +++ b/test/test_selection_api.html @@ -0,0 +1,126 @@ + + +
+ + + + + + + + + +
+ Selection indication was done using the on{Text/Node}SelectionChange
listeners.
+ you can try the following calls in the console of your browser:
+
+ // text and code modes:
+ editor.getTextSelection()
+ editor.setTextSelection(startPos,endPos)
+ // tree mode:
+ editor.getNodeSelection()
+ editor.setNodeSelection(Node1,Node2)
+
+