Skip to content

Commit c40a73c

Browse files
committed
update
1 parent 2f72f23 commit c40a73c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/assets/backend/js/editor/editor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,9 @@ App.editor.switcher = function(swicherElem, contentElem, defaultEditorName) {
613613
event = 'click';
614614
}
615615
$(swicherElem).on(event, function(){
616-
var etype=$(this).val();
616+
var etype=$(this).val()||$(this).attr('value');
617617
var texta=$(contentElem);
618-
var editorName=$(this).data('editor-name') || defaultEditorName;
618+
var editorName=texta.data('editor-name') || defaultEditorName;
619619
texta.data("editor-type",etype);
620620
return App.editor.switch(editorName, texta);
621621
});

0 commit comments

Comments
 (0)