X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_samples%2Fplaceholder.html;h=bb3d64182c32e7d7f5b329fa41d9e6383de5be9b;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=8d04af3779ecd121141b34df2d9371d1f967a137;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_samples/placeholder.html b/_samples/placeholder.html index 8d04af3..bb3d641 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.
+