HtmlStylingOptions class

Allows to set a pre-defined style for main componennts of the editor

Constructors

HtmlStylingOptions({String? globalStyleSheet, String blockTag = 'p', HtmlTagAttributes? blockTagAttributes, HtmlTagAttributes? blockquote, HtmlTagAttributes? code, HtmlTagAttributes? pre, HtmlTagAttributes? ul, HtmlTagAttributes? ol, HtmlTagAttributes? li, HtmlTagAttributes? a, bool sanitizeOnPaste = true, Color textColorLight = const Color.fromRGBO(0, 0, 0, 1), Color textColorDark = const Color.fromRGBO(0xea, 0xea, 0xea, 1)})

Properties

a HtmlTagAttributes?
defines style and class attributes of <a> tag
getter/setter pair
blockquote HtmlTagAttributes?
defines style and class attributes of <blockquote> tag
getter/setter pair
blockTag String
This defines which tag to use for paragraphs.
getter/setter pair
blockTagAttributes HtmlTagAttributes?
defines style and class attributes of a block tag
getter/setter pair
code HtmlTagAttributes?
defines style and class attributes of <code> tag
getter/setter pair
getRootStyleText String
gets contents of globalStyleSheet field prepared for injection
no setter
globalStyleSheet String?
Add contents of your style.css file to this variable to inject global style to the head of the document. (do NOT add <style> tags)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
li HtmlTagAttributes?
defines style and class attributes of <li> tag
getter/setter pair
ol HtmlTagAttributes?
defines style and class attributes of <ol> tag
getter/setter pair
options String
Gets Squire config object text ready for injection
no setter
pre HtmlTagAttributes?
defines style and class attributes of <pre> tag
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sanitizeOnPaste bool
The editor will strip all dangerous HTML if true. Otherwise will paste "as is" at your own risk (subject to XSS vulnerability).
getter/setter pair
textColorDark Color
body text color of the editor when Theme.brightness = dark
getter/setter pair
textColorLight Color
body text color of the editor when Theme.brightness = light
getter/setter pair
ul HtmlTagAttributes?
defines style and class attributes of <ul> tag
getter/setter pair

Methods

importCssFromFile(String asset) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
textColor(BuildContext context) Color
getter for body text color based on context (brightness)
textColorCssString(BuildContext context) String
get CSS color of body text for injection into HTML style
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited