Matt
Matt

Reputation: 9433

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

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

But my <textarea> still doesn't have the wysiwyh controls. Can this be done?

Upvotes: 1

Views: 585

Answers (1)

Phil Sturgeon
Phil Sturgeon

Reputation: 30766

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.

Upvotes: 1

Related Questions