restricted-editing/restrictededitingmode/converters
module
Functions
extendMarkerOnTypingPostFixer( editor ) → ModelPostFixerinternalmodule:restricted-editing/restrictededitingmode/converters~extendMarkerOnTypingPostFixerA post-fixer that extends a marker when the user types on its boundaries.
Parameters
editor : Editor
Returns
resurrectCollapsedMarkerPostFixer( editor ) → ModelPostFixerinternalmodule:restricted-editing/restrictededitingmode/converters~resurrectCollapsedMarkerPostFixerA post-fixer that prevents removing a collapsed marker from the document.
Parameters
editor : Editor
Returns
setupExceptionHighlighting( editor ) → voidinternalmodule:restricted-editing/restrictededitingmode/converters~setupExceptionHighlightingAdds a visual highlight style to a restricted editing exception that the selection is anchored to.
The highlight is turned on by adding the
.restricted-editing-exception_selectedclass to the exception in the view:- The class is removed before the conversion starts, as callbacks added with the
'highest'priority toDowncastDispatcherevents. - The class is added in the view post-fixer, after other changes in the model tree are converted to the view.
This way, adding and removing the highlight does not interfere with conversion.
Parameters
editor : Editor
Returns
void
- The class is removed before the conversion starts, as callbacks added with the
upcastHighlightToMarker( config = { config.model, [config.useWrapperElement], config.view } ) → ( dispatcher: UpcastDispatcher ) => voidinternalmodule:restricted-editing/restrictededitingmode/converters~upcastHighlightToMarkerA view highlight-to-marker conversion helper.
Parameters
config : objectConversion configuration.
Propertiesconfig.model : () => string[ config.useWrapperElement ] : booleanconfig.view : MatcherPattern
Returns
( dispatcher: UpcastDispatcher ) => void