Skip to content

getContent() not working #4

@FernandoLomazzi

Description

@FernandoLomazzi

Describe the bug

When I call getContent() after creating a MarkdownEditor, I receive an IllegalArgumentException "argument 'content' is null." Additionally, if I set the initial content of the component and then make changes in the text area, calling getContent() does not reflect the updated value.

Expected behavior

Empty string for the first case, changed content for the second one.

Minimal reproducible example

MarkdownEditor test = new MarkdownEditor();
System.out.println(test.getContent());

Add-on Version

1.0.0

Vaadin Version

24.4.10

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions