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
andclass
attributes of<a>
taggetter/setter pair - blockquote ↔ HtmlTagAttributes?
-
defines
style
andclass
attributes of<blockquote>
taggetter/setter pair - blockTag ↔ String
-
This defines which tag to use for paragraphs.
getter/setter pair
- blockTagAttributes ↔ HtmlTagAttributes?
-
defines
style
andclass
attributes of a block taggetter/setter pair - code ↔ HtmlTagAttributes?
-
defines
style
andclass
attributes of<code>
taggetter/setter pair - getRootStyleText → String
-
gets contents of
globalStyleSheet
field prepared for injectionno 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
andclass
attributes of<li>
taggetter/setter pair - ol ↔ HtmlTagAttributes?
-
defines
style
andclass
attributes of<ol>
taggetter/setter pair - options → String
-
Gets Squire config object text ready for injection
no setter
- pre ↔ HtmlTagAttributes?
-
defines
style
andclass
attributes of<pre>
taggetter/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
andclass
attributes of<ul>
taggetter/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