.uiPrevieweditor()
Categories: UI
ep.uiPrevieweditor(options)
Subclass: ep
Inherit: (Subclass: ep) .widget()
Plugin: ep.ui.previeweditor
Description: Creates an inline editor for the preview view.
-
ep.uiPrevieweditor(options)
version added: 6.15.0options A map of additional options pass to the method.
The ep.uiPrevieweditor
method creates an inline editor for the preview view. In addition it provides necessary methods to connect the external toolbar to the CKEditor plugins.
-
Create a preview editor.
HTML:
<div id="baseId">Some Content</div> <div id="holderId" style="clear:both; position:relative;display: none;"> <textarea style="visiblity:hidden;" name="editorName" id="editorID">Some Content</textarea> </div>
Code:
ep('#editorID').uiPrevieweditor({ 'name' : 'editorName', 'navbar' : 'Content', 'pageBreak': false, 'height': $('#baseId').height(), 'width': $('#baseId').width(), 'holder': $('#holderId'), 'base': $('#baseId') });
-
toggleToolbar
-
.uiPrevieweditor('toggleToolbar', blnShow)
version added: 6.15.0blnShow Specifies path and name of the file containing the new preview image.
Handles settings for the current editor if the external toolbar is toggled.
-