Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get edited content #9

Closed
khilkevichigor opened this issue Oct 28, 2024 · 2 comments
Closed

Cant get edited content #9

khilkevichigor opened this issue Oct 28, 2024 · 2 comments

Comments

@khilkevichigor
Copy link

Describe the bug

I have this:
<vaadin.version>24.5.0</vaadin.version>

and this from https://vaadin.com/directory/component/markdown-editor-add-on

<dependency>
   <groupId>com.flowingcode.vaadin.addons</groupId>
   <artifactId>markdown-editor-addon</artifactId>
   <version>1.0.0</version>
</dependency>

And I use this:

MarkdownEditor mde = new MarkdownEditor();
mde.setSizeFull();
mde.setHeight("300px");
mde.setMaxLength(500);
mde.setDataColorMode(BaseMarkdownComponent.DataColorMode.LIGTH);
mde.setContent(post.getPostText);//"aaa"
formLayout.add(mde);

I then change the text on the UI in mde from "aaa" to "bbb" and use that afterwards:

dialog.addDialogCloseActionListener(closeEvent -> {
      post.setPostText(mde.getContent()); //here for some reason i am getting "aaa" instead of "bbb"!
      postService.save(post);
});

Expected behavior

i expect to get "bbb"

Minimal reproducible example

No response

Add-on Version

1.0.0

Vaadin Version

24.5.0

Additional information

No response

@mlopezFC
Copy link
Member

This is a duplicate of #4 . Already fixed in #6 . We're going to do the release soon and keep you posted.
Regards.

@javier-godoy javier-godoy moved this from Inbox (needs triage) to Pending release in Flowing Code Addons Oct 28, 2024
@mlopezFC
Copy link
Member

We released a new version containing this fix. Closing this one, but if you have any trouble just reopen it or create a new issue.

@github-project-automation github-project-automation bot moved this from Pending release to Done in Flowing Code Addons Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants