Hey guys,
My client has some wishes that are best tackled with CKEditor's template-functionality (advanced layouts based on the grid of their site), but I was wondering if it's possible to have the template I select insert at cursor (or append after current content for that matter) instead of overwriting all the current content. Is this possible?
Thanks,
Steven
This is a built-in CKEditor
This is a built-in CKEditor functionality: if you open the Templates dialog window, there is a checkbox labelled "Replace actual contents". If you uncheck it, the contents of the template will be added at the location of the cursor in your existing text and will not replace the content that you have created before. You can check this on the demo page or read about it in the User's Guide.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Append
You can change this default setting in ckeditor > plugins > templates > plugins.js on line 91.
Change
CKEDITOR.config.templates_replaceContent = true;
to
CKEDITOR.config.templates_replaceContent = false;