(Links to UG added) |
m (Typo corrected) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
Remember that you can share either both the toolbar and the elements path or just one of these elements. You can also combine editor instances with different configurations (with shared elements and without them) on one page. | Remember that you can share either both the toolbar and the elements path or just one of these elements. You can also combine editor instances with different configurations (with shared elements and without them) on one page. | ||
+ | |||
+ | <note>If multiple editor instances are to share some parts of the interface, the <code>sharedSpaces</code> setting has to be defined for each of them separately. | ||
+ | </note> | ||
+ | |||
For a full working example of sharing the editor interface refer to the '''Shared Toolbars''' (<code>sharedspaces.html</code>) sample located in the <code>_samples</code> folder of the CKEditor installation package. | For a full working example of sharing the editor interface refer to the '''Shared Toolbars''' (<code>sharedspaces.html</code>) sample located in the <code>_samples</code> folder of the CKEditor installation package. |
Latest revision as of 16:37, 9 March 2011
Use the sharedSpaces
configuration value to define the page element that will contain the shared toolbar (top
) and the elements path (bottom
) for the editor instances.
// Place the toolbar inside the element with an ID of "myToolbar" and the elements path // in the element with an ID of "myElementsPath". config.sharedSpaces = { top : 'myToolbar', bottom : 'myElementsPath' };
Remember that you can share either both the toolbar and the elements path or just one of these elements. You can also combine editor instances with different configurations (with shared elements and without them) on one page.
If multiple editor instances are to share some parts of the interface, the sharedSpaces
setting has to be defined for each of them separately.
For a full working example of sharing the editor interface refer to the Shared Toolbars (sharedspaces.html
) sample located in the _samples
folder of the CKEditor installation package.