Package com._1c.g5.v8.dt.html.ui.editor
Interface IWysiwygHtmlPage
-
- All Known Subinterfaces:
IHtmlDocumentWysiwygGranularEditorPage
- All Known Implementing Classes:
MdExtendedWysiwygHtmlPage
,WysiwygHtmlPage
public interface IWysiwygHtmlPage
Public api for Wysiwyg page of
HtmlMultiPageEditor
Note that
HtmlMultiPageEditor
can be adapted to this class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addWysiwygHtmlChangeListener(IWysiwygChangeListener changeListener)
Adds the specifiedIWysiwygChangeListener
to this wysiwygvoid
executeCommand(String commandName, String... args)
Delegate command executing for Wysiwyg pageIWysiwygChangeListener.WysiwygHtmlSelection
getWysiwygHtmlSelection()
Info about wysiwyg selectionvoid
restoreSelection()
Restore last selection on wysiwyg pagevoid
updateHtml(String htmlText, boolean escape)
Update html on wysiwyg pagevoid
updateSelection(int offset, int length, int headerLength)
Update selection on wysiwyg page
-
-
-
Method Detail
-
updateHtml
void updateHtml(String htmlText, boolean escape)
Update html on wysiwyg page
- Parameters:
htmlText
- the text to set in wysiwyg editor, cannot benull
escape
-true
if text need to be escape,false
if otherwise.
-
updateSelection
void updateSelection(int offset, int length, int headerLength)
Update selection on wysiwyg page
- Parameters:
offset
- the selection offset relative to the body taglength
- the selection lengthheaderLength
- the length of text befoge body content
-
restoreSelection
void restoreSelection()
Restore last selection on wysiwyg page
Use this method after show any modal dialog on wysiwyg page, because the editor can lose selection when dialog will be closed
-
executeCommand
void executeCommand(String commandName, String... args)
Delegate command executing for Wysiwyg page- Parameters:
commandName
- the command name to execute, cannot benull
args
- the command arguments sequence, cannot benull
-
addWysiwygHtmlChangeListener
void addWysiwygHtmlChangeListener(IWysiwygChangeListener changeListener)
Adds the specifiedIWysiwygChangeListener
to this wysiwyg- Parameters:
changeListener
- instance ofIWysiwygChangeListener
, cannot benull
-
getWysiwygHtmlSelection
IWysiwygChangeListener.WysiwygHtmlSelection getWysiwygHtmlSelection()
Info about wysiwyg selection- Returns:
- extended info about wysiwyg selection, can be
null
if page has no any selection
-
-