X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/placeholder.html?ds=inline diff --git a/skins/ckeditor/_samples/placeholder.html b/skins/ckeditor/_samples/placeholder.html new file mode 100644 index 0000000..015e01b --- /dev/null +++ b/skins/ckeditor/_samples/placeholder.html @@ -0,0 +1,81 @@ + + + +
++ This sample shows how to configure CKEditor instances to use the + Placeholder plugin that lets you insert read-only elements + into your content. To enter and modify read-only text, use the + Create Placeholder button and its matching dialog window. +
+
+ To add a CKEditor instance that uses the placeholder plugin and a related
+ Create Placeholder toolbar button, insert the following JavaScript
+ call to your code:
+
CKEDITOR.replace( 'textarea_id',
+ {
+ extraPlugins : 'placeholder',
+ toolbar : [ [ 'Source', 'Bold' ], ['CreatePlaceholder'] ]
+ });
+
+ Note that textarea_id in the code above is the id attribute of
+ the <textarea> element to be replaced with CKEditor.
+