Simple way to prevent certain content types from using a wysiwyg editor

This allows an administrator to disable the wysiwyg editor on select content types by adding a no_wysiwyg=true param to the content type.

This is needed because CKEditor sometimes thinks it's better than the person writing the content and rewrites the HTML.
Thinking about it, I think the ideal would actually be to make it a field
in the types table?


On 25 August 2014 12:40, Rachman Chavik <notifications@github.com> wrote:

> In Nodes/View/Nodes/admin_form.ctp:
>
> > @@ -85,6 +85,7 @@ echo $this->Form->create('Node', array(
> >  				));
> >  				echo $this->Form->input('body', array(
> >  					'label' => __d('croogo', 'Body'),
> > +					'id' => (isset($type['Params']['no_wysiwyg']) && $type['Params']['no_wysiwyg'] == 'true' ? 'NodeBodyNoWysiwyg' : 'NodeBody'),
>
> If we choose no_wysiwyg, then we should just check for its presence. Do
> we really need the second check?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/croogo/croogo/pull/530/files#r16649737>.
>