Imran S.
Imran S.

Reputation: 935

How to save variables in CKEditor?

I have to create a document editing tool using CKEditor. The document will have variables like %account% or %email% which will be replaced with values from the database upon publishing this document.

How do I save the variables as the part of the document content? Is there a plugin there to do that?

Sort of http://www.isacchi.eu/en/application/13/TinyMCE-Placeholder for CKEditor.

Upvotes: 2

Views: 3445

Answers (1)

Reinmar
Reinmar

Reputation: 22013

There's an official plugin called placeholder. The variables are editable using dialog and their values are not editable in the WYSIWYG area. Check out the sample.

Upvotes: 0

Related Questions