Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Nov 8, 2024
1 parent 2f72f23 commit c40a73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/assets/backend/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,9 @@ App.editor.switcher = function(swicherElem, contentElem, defaultEditorName) {
event = 'click';
}
$(swicherElem).on(event, function(){
var etype=$(this).val();
var etype=$(this).val()||$(this).attr('value');
var texta=$(contentElem);
var editorName=$(this).data('editor-name') || defaultEditorName;
var editorName=texta.data('editor-name') || defaultEditorName;
texta.data("editor-type",etype);
return App.editor.switch(editorName, texta);
});
Expand Down
Loading

0 comments on commit c40a73c

Please sign in to comment.