editor/models/rules/insert library

Classes

AutoExitBlockRule
Heuristic rule to exit current block when user inserts two consecutive newlines.
AutoFormatLinksRule
Applies link format to text segment (which looks like a link) when user inserts space character after it.
AutoFormatMultipleLinksRule
Applies link format to text segments within the inserted text that matches the URL pattern.
CatchAllInsertRule
Fallback rule which simply inserts text as-is without any special handling.
InsertEmbedsRule
Handles all format operations which manipulate embeds. This rule wraps line breaks around video, not image.
InsertRule
A heuristic rule for insert operations.
PreserveBlockStyleOnInsertRule
Preserves block style when user inserts text containing newlines.
PreserveInlineStylesRule
Preserves inline styles when user inserts text inside formatted segment.
PreserveLineStyleOnSplitRule
Preserves line format when user splits the line into two.
ResetLineFormatOnNewLineRule
Resets format for a newly inserted line when insert occurred at the end of a line (right before a newline).