Class MarkdownEditor

All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasSize, HasStyle, Serializable

@NpmPackage(value="rehype-sanitize", version="6.0.0") @JsModule("./markdown-editor.tsx") @Tag("markdown-editor") public class MarkdownEditor extends BaseMarkdownComponent
Markdown component that allows editing the contents.
See Also:
  • Constructor Details

    • MarkdownEditor

      public MarkdownEditor()
      Constructor with empty content.
    • MarkdownEditor

      public MarkdownEditor(String content)
      Constructor with default content.
      Parameters:
      content - default content for the Markdown editor
  • Method Details

    • getPlaceholder

      public String getPlaceholder()
      Returns the placeholder text for the Markdown editor.
      Returns:
      the placeholder text
    • setPlaceholder

      public void setPlaceholder(String placeholder)
      Sets the placeholder text for the Markdown editor.
      Parameters:
      placeholder - the placeholder text
    • getMaxLength

      public int getMaxLength()
      Returns the configured maximum character count for the Markdown editor.
      Returns:
      the configured maximum character count
    • setMaxLength

      public void setMaxLength(int maxlength)
      Sets the maximum character count for the Markdown editor.
      Parameters:
      maxlength - the maximum character count