src/pyams_skin/resources/js/myams-plugins.js
changeset 502 403751b04d8e
parent 501 2f0eb9a77324
child 535 618ff34bcd7c
--- a/src/pyams_skin/resources/js/myams-plugins.js	Thu Dec 20 18:41:40 2018 +0100
+++ b/src/pyams_skin/resources/js/myams-plugins.js	Fri Dec 28 10:05:11 2018 +0100
@@ -1482,7 +1482,7 @@
 															widget = textarea.parents('.text-editor'),
 															data = widget.data(),
 															modeList = ace.require('ace/ext/modelist'),
-															mode = modeList.getModeForPath(widget.data('ams-editor-filename') || 'editor.txt').mode;
+															mode = data.amsEditorMode || modeList.getModeForPath(data.amsEditorFilename || 'editor.txt').mode;
 
 														// Create editor DIV
 														var textEditor = $('<div>', {