How to disable wysiwyg editor for body field in PyroCMS 2.x? -
i disable ck wysiwyg editor in pyrocms 2.x can enter plain html code without switching each time source view. possible , how can solved?
depending on version have, can following:
- go pages modules , open "page types" section
- create new page type (klick on button on top right)
- set you're page type giving proper name (e. g. html default) , make sure uses correct theme layout
- open "layout" tab , insert
{{ html_body }}
- click "save"
in next window, you'll have add field new page type
- click "+ new field" in upper right corne
- choose "html body" name , make sure, slug set "html_body"
- set field "required"
- choose "textarea"
- set "content type" "html"
- click "save"
you're set use new page type "html default".
choose page type when adding new page, , you'll getting simple textarea instead of wysiwyg editor.
Comments
Post a Comment