We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Multiple text editor config options
Something I've greatly enjoyed in another CMS is the possibility of using different configs for the wysiwyg text editor. The common use case is having a blog where the editor can add images and video, and then elsewhere in the site a wysiwyg is limited to bold/italic/links (or whatever is needed).
I am comfortable setting up the logic in the wysiwyg's _config.inc file, but there isn't an easy way I can see to get a variable in there without hijacking a pre-existing attribute like "size" to pass in a class name.
I'm imagining something like this:
<perch:content id="text" type="textarea" label="Text" editor="redactor" html="true" config="config_handle" />
It would then be up to the developer to set up the multiple configs in wysiwyg's _config.inc file based on the variable picked up from
So perhaps the more general request is to enable pass-through of attributes from template tags to control panel form fields. Maybe that's preposterous, you tell me.
Want to reply to this thread?Login with Perch