开发者

Add stylesheets and .js files to tinyMCE editor in wordpress?

I would 开发者_Go百科like to had some jquery files and stylesheets to the head of the tinyMCE editor of wordpress. Any suggestions on how to do this?


Use an own plugin or the tinymce setup paramter

// Adds an observer to the onSaveContent event using tinyMCE.init
tinyMCE.init({
   ...
   setup : function(ed) {
      ed.onInit.add(function(ed){
         ed.dom.loadCSS( 'url_to_your_css_file' );
      });
   }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜