X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_samples%2Fsharedspaces.html;h=624b5fc2de54c9513c4dcaa436286022c8d5269f;hp=7b32b9f90a1c127a600a99f69de38078322f2fe8;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hpb=9afde8772159bd3436f1f5b7862960307710ae5a diff --git a/_samples/sharedspaces.html b/_samples/sharedspaces.html index 7b32b9f..624b5fc 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. +

+