X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fplaceholder.html;h=e8055ee14227cd326c15fa5580c1c70d1f626397;hb=refs%2Ftags%2Fv3.5.1;hp=8d04af3779ecd121141b34df2d9371d1f967a137;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_samples/placeholder.html b/_samples/placeholder.html index 8d04af3..e8055ee 100644 --- a/_samples/placeholder.html +++ b/_samples/placeholder.html @@ -1,20 +1,42 @@
-+ 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.
+