Constructor with possible configuration options.
configuration options
Readonly
idSome ID solely used for debugging purpose. Recommended to keep unique among rules, though.
Readonly
tagsBBCode tags, this rule is related to. Automatically also registers tags as known to BBCode to HTML processing.
Typically, you list tags here, which are generated during toData
mapping.
Processing rule for transforming a color style represented in HTML (by
color
style) to[color=#ff0000]Text[/color]
in BBCode.Due to the behavior of
CSSStyleDeclaration
color formats such asrgb()
,rgba()
orhsl()
are supported as well and will all be transformed to hex or hex-alpha representation.