We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlockTool.sanitize property returns an object with the same shape as Tool's data object. sanitize object container SanitizerConfig as leafs.
BlockTool.sanitize
data
sanitize
SanitizerConfig
Examples:
{ text: { br: true, }, }
{ caption: { text: { br: true } } }
Internal BlockTool class has baseSanitizeConfig and sanitizeConfig preoptries.
baseSanitizeConfig
sanitizeConfig
baseSanitizerConfig is merge of sanitize configs of inline tools and tunes used by Block tool
baseSanitizerConfig
sanitizeConfig returns an object with the shape of original tool.sanitize, but each with merged baseSanitizerConfig to each property.
tool.sanitize
Example Tool config: { text: { br: true } } Inline Tool config: { b: true } Tune config: { sup: true }
{ text: { br: true } }
{ b: true }
{ sup: true }
baseSanitizeConfig would be { b: true, sup: true } sanitizeConfig would be { text: { br: true, b: true, sup: true } }
{ b: true, sup: true }
{ text: { br: true, b: true, sup: true } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
BlockTool.sanitize
property returns an object with the same shape as Tool'sdata
object.sanitize
object containerSanitizerConfig
as leafs.Examples:
Internal BlockTool class has
baseSanitizeConfig
andsanitizeConfig
preoptries.baseSanitizerConfig
is merge of sanitize configs of inline tools and tunes used by Block toolsanitizeConfig
returns an object with the shape of originaltool.sanitize
, but each with mergedbaseSanitizerConfig
to each property.Example
Tool config:
{ text: { br: true } }
Inline Tool config:
{ b: true }
Tune config:
{ sup: true }
baseSanitizeConfig
would be{ b: true, sup: true }
sanitizeConfig
would be{ text: { br: true, b: true, sup: true } }
Problems
baseSanitizeConfig
should be renamed so its name reflects it is a merge of Tunes and Inline Tools sanitize configssanitizeConfig
should be changed to reflect shape of thedata
objectsanitizeConfig
should be able to process nested fields ofdata
object (also need to check the same in Saver module)The text was updated successfully, but these errors were encountered: