X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fplaceholder.html;h=015e01b6e7937cd90cf441ae74bc310a6fb4cafc;hb=refs%2Ftags%2Fv3.5.4;hp=8d04af3779ecd121141b34df2d9371d1f967a137;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_samples/placeholder.html b/_samples/placeholder.html index 8d04af3..015e01b 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.
+