开发者

How can I borrow PyroCMS' WYSIWYG editor for a module of my own?

开发者 https://www.devze.com 2023-03-26 08:22 出处:网络
I\'ve included the following in the admin controller method (as per the pages admin controller): admin.js

I've included the following in the admin controller method (as per the pages admin controller):

  • admin.js
  • CodeMirror.js
  • wysiwyg.php includes some more javascript and initialises the FCKeditor

But my <textarea> still doesn't have the wysiwyh controls. Can this be d开发者_StackOverflow社区one?


You can apply the class "wysiwyg-simple" or "wysiwyg-advanced" to get one of the two WYSIWYG editors you see around. You do not need to include the first two.

CodeMirror is a HTML/CSS/JavaScript syntax highlighter we use in a few places, nothing to do with WYSIWYG.

0

精彩评论

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