Class Editor.EditorTextBuilder

  • Enclosing class:
    Editor

    public static class Editor.EditorTextBuilder
    extends java.lang.Object
    Builder for creating text nodes within the Editor context.

    This builder integrates with the Editor's configuration and automatically adds the created text node to the specified parent.

    • Method Detail

      • withContent

        public Editor.EditorTextBuilder withContent​(java.lang.String content)
        Sets the content of this text node.
        Parameters:
        content - the text content
        Returns:
        this builder for method chaining
      • asCData

        public Editor.EditorTextBuilder asCData()
        Makes this text node a CDATA section.
        Returns:
        this builder for method chaining