Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Nov 16, 2024
1 parent 66f194c commit 1d73a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/assets/backend/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ App.editor.contypeAttachers.html = function(obj){
var $code=$(obj).find('pre[class^=language-]');
if($code.length>0)App.editor.codeHighlight($code);
};
App.editor.attachContype = function(container){
App.editor.attachContype = function(container,callback){
var $container=container?$(container):$(document);
$container.find('[data-contype]:not([contype-attached])').each(function(){
$(this).attr('contype-attached','1');
var contype=$(this).data('contype');
if(typeof(App.editor.contypeAttachers[contype])!='undefined'){
App.editor.contypeAttachers[contype](this);
callback && callback.apply(this,arguments);
}
})
}
Expand Down
Loading

0 comments on commit 1d73a11

Please sign in to comment.