Adding Content Templates to CKEditor for Plone 4
Posted on tirsdag, desember 14, 2010 @ kl. 19.14 by david
After many hours of playing around with a local copy of Plone 4, I finally found out where the configuration files are located.
Content Templates
Templates in Ckeditor are like templates in Word, reusable layouts that can be customized using HTML and added anywhere that CKEditor is loaded.
Customizing the List of Templates
This is where I got stumped. After installing the CKEditor for Plone product, I found 4 locations with the default.js file for editing.
These are on my MacBook Pro. Read about installing Plone on your system.
- /Applications/Plone/buildout-cache/eggs/collective.ckeditor-3.4.1-py2.6.egg/collective/ckeditor/browser/ckeditor/plugins/templates/templates
- /Applications/Plone/buildout-cache/eggs/collective.ckeditor-3.4.1-py2.6.egg/collective/ckeditor/browser/ckeditor/_source/plugins/templates/templates
- /Applications/Plone/buildout-cache/eggs/collective.ckeditor-3.4.1-py2.6.egg/collective/ckeditor/_src/ckeditor/plugins/templates/templates
- /Applications/Plone/buildout-cache/eggs/collective.ckeditor-3.4.1-py2.6.egg/collective/ckeditor/_src/ckeditor/_source/plugins/templates/templates
So after testing in Development Mode (JavaScripts and CSS not caching), I found out which of these files actually works, #1.
So I guess I can now add the templates to CKEditor. It really shouldn't have been this much trouble to edit, but I am sharing this to save you time.
What is CKEditor for Plone 4?
CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it. It brings to the web common editing features found on desktop editing applications like Microsoft Word and OpenOffice.
CKEditor vs. Word
CKEditor is not a desktop application like Microsoft Word or OpenOffice. It's a component to be used by developers to enhance their applications. It's an editor to be used inside web pages.



