|
|
@@ -2745,9 +2745,14 @@
|
|
|
placeHolderVisible = false;
|
|
|
}
|
|
|
if (options.updateOnInput){
|
|
|
-
|
|
|
snippet.statement_raw(removeUnicodes(editor.getValue()));
|
|
|
}
|
|
|
+ });
|
|
|
+
|
|
|
+ editor.on("focus", function () {
|
|
|
+ snippet.inFocus(true);
|
|
|
+ $(".ace-editor").data("last-active-editor", false);
|
|
|
+ $el.data("last-active-editor", true);
|
|
|
if (editor.session.$backMarkers) {
|
|
|
for (var marker in editor.session.$backMarkers) {
|
|
|
if (editor.session.$backMarkers[marker].clazz === 'highlighted') {
|
|
|
@@ -2757,12 +2762,6 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- editor.on("focus", function () {
|
|
|
- snippet.inFocus(true);
|
|
|
- $(".ace-editor").data("last-active-editor", false);
|
|
|
- $el.data("last-active-editor", true);
|
|
|
- });
|
|
|
-
|
|
|
editor.selection.on("changeSelection", function () {
|
|
|
snippet.selectedStatement(editor.getSelectedText());
|
|
|
});
|