X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fsharedspaces.html;h=d514b1b45d20796d8a7e589b7a2914b30d3e9de8;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=7b32b9f90a1c127a600a99f69de38078322f2fe8;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_samples/sharedspaces.html b/_samples/sharedspaces.html index 7b32b9f..d514b1b 100644 --- a/_samples/sharedspaces.html +++ b/_samples/sharedspaces.html @@ -1,11 +1,11 @@ - Shared toolbars - CKEditor Sample + Shared Toolbars — CKEditor Sample @@ -24,9 +24,31 @@ For licensing, see LICENSE.html or http://ckeditor.com/license -

- CKEditor Sample +

+ CKEditor Sample — Shared Toolbars

+
+

+ This sample shows how to configure multiple CKEditor instances to share some parts of the interface. + You can choose to share the toolbar (topSpace), the elements path + (bottomSpace), or both. +

+

+ CKEditor instances with shared spaces can be inserted with a JavaScript call using the following code: +

+
CKEDITOR.replace( 'textarea_id',
+	{
+		sharedSpaces :
+		{
+			top : 'topSpace',
+			bottom : 'bottomSpace'
+		}
+	});
+

+ Note that textarea_id in the code above is the id attribute of + the <textarea> element to be replaced with CKEditor. +

+