HtmlOperations class abstract
Operations for converting supported HTML elements to Delta operations.
This abstract class defines methods for converting various HTML elements into Delta operations, which are used for rich text editing.
- Implementers
Constructors
Properties
-
customBlocks
↔ List<
CustomHtmlPart> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
blockquoteToOp(
Element element) → List< Operation> -
Converts a blockquote HTML element (
<blockquote>
) to Delta operations. -
brToOp(
Element element) → List< Operation> -
Converts a
<br>
HTML element to Delta operations. -
codeblockToOp(
Element element) → List< Operation> -
Converts a code block HTML element (
<pre>
) to Delta operations. -
divToOp(
Element element) → List< Operation> -
Converts a div HTML element (
<div>
) to Delta operations. -
headerToOp(
Element element) → List< Operation> -
Converts a header HTML element (
<h1>
to<h6>
) to Delta operations. -
imgToOp(
Element element) → List< Operation> -
Converts an image HTML element (
<img>
) to Delta operations. -
linkToOp(
Element element) → List< Operation> -
Converts a link HTML element (
<a>
) to Delta operations. -
listToOp(
Element element, [int indentLevel = 0]) → List< Operation> -
Converts list HTML elements (
<ul>
,<ol>
,<li>
) to Delta operations. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paragraphToOp(
Element element) → List< Operation> -
Converts a paragraph HTML element (
<p>
) to Delta operations. -
resolveCurrentElement(
Element element, [int indentLevel = 0]) → List< Operation> - Resolves the current HTML element into Delta operations.
-
setCustomBlocks(
List< CustomHtmlPart> customBlocks, {bool overrideCurrentBlocks = false}) → void - Sets custom HTML parts to extend the conversion capabilities.
-
spanToOp(
Element element) → List< Operation> -
Converts a span HTML element (
<span>
) to Delta operations. -
toString(
) → String -
A string representation of this object.
inherited
-
videoToOp(
Element element) → List< Operation> -
Converts a video HTML element (
<video>
) to Delta operations.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited