--- 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>', {