danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0:
danielebarchiesi@0:
danielebarchiesi@0: This sample shows how to configure multiple CKEditor instances to share some parts of the interface.
danielebarchiesi@0: You can choose to share the toolbar (topSpace
), the elements path
danielebarchiesi@0: (bottomSpace
), or both.
danielebarchiesi@0:
danielebarchiesi@0: CKEditor instances with shared spaces can be inserted with a JavaScript call using the following code: danielebarchiesi@0:
danielebarchiesi@0:CKEDITOR.replace( 'textarea_id', danielebarchiesi@0: { danielebarchiesi@0: sharedSpaces : danielebarchiesi@0: { danielebarchiesi@0: top : 'topSpace', danielebarchiesi@0: bottom : 'bottomSpace' danielebarchiesi@0: } danielebarchiesi@0: });danielebarchiesi@0:
danielebarchiesi@0: Note that textarea_id
in the code above is the id
attribute of
danielebarchiesi@0: the <textarea>
element to be replaced with CKEditor.
danielebarchiesi@0: