![]() ![]() Add a class of myeditor to the textarea field in the edit form.When you specify editor="myeditor" on a template tag, Perch will do two things Place your editor’s files in a folder within perch/addons/plugins/editors, for example, perch/addons/plugins/editors/myeditor If the editor you wish to use isn’t pre-packaged on our site, it should still be quite easy to install. ![]() If you are not sure how to edit Perch Templates then first watch the video on Creating Templates Building a custom editor Note: If you are converting a default Perch template that uses the MarkItUp editor to use any of the other editor plugins – Redactor, TinyMCE or CKEditor you need to remove markdown=“true” from the tag and replace it with html=“true”. Īs most editors create HTML you need to set html on your region in addition to adding the editor attribute. You then use the plugin in the same way that the default markitup editor is used, by adding it to a template tag that has ty[e=”textarea”`.įor example, if I had installed and wanted to use TinyMCE I would use the following in my template. If you were installing the CKEditor plugin, for example, this would go into your site at: perch/addons/plugins/editors/ckeditor To install, unzip the folder and place the plugin into the perch/addons/plugins/editors folder. The currently available editors can be found in the add-ons section of the Perch website. To make things simple, a few popular editors are pre-packaged for easy installation. Just about any WYSIWYG editor that progressively enhances (or can be made to progressively enhance) a basic HTML textarea can be used with Perch. The existing textarea field type can be enhanced to use any number of WYSIWYG editors should you require. Perch content editing forms can be extended using field types, offering a lot of flexibility over how content is structured at collected from the user. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |