Add TinyMCE to Pagelines Content Box Section

Pagelines is an awesome WordPress Framework that enables Drag & Drop functionality within WordPress as a CMS – we like it a lot. A great feature of Pagelines is ‘sections’ that allow you to drop in different forms of content from navigation to galleries. A section that we use a lot is the Pagelines ‘Content Box’ which is available in the Pagelines Store. The section allows you to add plain html and other content i in plain text format in the Pagelines admin sections (and therefore on the front end) and whilst that’s very useful, it’s not particularly functional. What we wanted was a way to add the resident TinyMCE editor into that plugin so that we could switch between ‘visual’ and ‘html’ modes. Here is the WordPress plugin that we have cobbled together:-

Simply install the plugin to your WordPress plugins directory and activate it to add the TinyMCE editor to Pagelines Content Box.

Add Media Options

This version doesn’t include ‘Add Media’ option directly, but you can add media by opening in full screen view.

Add TinyMCE to a Custom Post Type Textarea

With the same logic you can easily add the TinyMCE editor to any custom post type. Use a code inspector to find the ID for the original Textarea and substitute it for our original content box ID which is ‘pagelines_content_box_content’.

Credits

We definately can’t take the full plaudits for this plugin and it’s based on an original starting point by Lee Jackson posting on wpmudev (that offer great WordPress plugins):-

About the Author

Glenn

A highly experienced WordPress Web Developer, Front-end and Back-end Developer & New Media Specialist with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries built up over a number of years.

Comments 2

Hi Amar
This plugin did work as a ‘hack’ on Pagelines Framework with the correct IDs on line 642, but it’s not supported as Pagelines has now moved on to DMS. DMS is a great Framework that has completely dropped The Pagelines Content Box in favour of the ‘TextBox’. I recommend that you head over to Pagelines and get your free copy of DMS and migrate to this vastly superior and supported system.
Best Regards
Glenn