danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0:
danielebarchiesi@0:danielebarchiesi@0: This sample shows how to configure CKEditor instances to use the danielebarchiesi@0: Placeholder plugin that lets you insert read-only elements danielebarchiesi@0: into your content. To enter and modify read-only text, use the danielebarchiesi@0: Create Placeholder button and its matching dialog window. danielebarchiesi@0:
danielebarchiesi@0:
danielebarchiesi@0: To add a CKEditor instance that uses the placeholder
plugin and a related
danielebarchiesi@0: Create Placeholder toolbar button, insert the following JavaScript
danielebarchiesi@0: call to your code:
danielebarchiesi@0:
CKEDITOR.replace( 'textarea_id', danielebarchiesi@0: { danielebarchiesi@0: extraPlugins : 'placeholder', danielebarchiesi@0: toolbar : [ [ 'Source', 'Bold' ], ['CreatePlaceholder'] ] danielebarchiesi@0: });danielebarchiesi@0:
danielebarchiesi@0: Note that textarea_id
in the code above is the id
attribute of
danielebarchiesi@0: the <textarea>
element to be replaced with CKEditor.
danielebarchiesi@0: