Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
1.18k stars 91 forks source link

[FEATURE] - Exporting/importing Yoopta content in different formats (html, md, text) #150

Closed Darginec05 closed 3 months ago

Darginec05 commented 4 months ago

Package @yoopta/exports should be finished with new features in v4. Supported formats for starts: html, md, plaint text

Discussed in https://github.com/Darginec05/Yoopta-Editor/discussions/137

Originally posted by **nachog00** May 5, 2024 > Thanks for the great plugin! I'm surely be using it a lot. > Now my question is: > is there any way to export the content as a plain html? I intend on using this as a high quality input in a form, and I need to store the input as HTML. > I saw the editor.getEditorValue method returns an object with a tree but i cant really use that as it is. > Thanks anyways.
michaelshimeles commented 4 months ago

This would be so helpful. This is the only feature stopping me from switching over

maZahaca commented 4 months ago

"stopping me from switching over" is the best motivation to work overnight! Let's do it!

Darginec05 commented 4 months ago

@maZahaca Okay, challenge accepted!

michaelshimeles commented 4 months ago

I'll swap asap the second it's live :)

chrassendk commented 3 months ago

@Darginec05 Is there an tentative ETA for a 4.x upgrade of exports? In order for rolling it out in prod. we need to import export HTML

Darginec05 commented 3 months ago

Hi @chrassendk 👋
I'm currently working on it, but parts with html and markdown are already done. I have plans to pulbish today @yoopta/exports as -rc version

vlad-svr commented 3 months ago

Hi @Darginec05 I'm really looking forward to that too, I'm thinking to switch

maZahaca commented 3 months ago

It seems the most wanted feature now! @Darginec05

Darginec05 commented 3 months ago

@vlad-svr Roger that. I ping you when I'll publish -rc version

Darginec05 commented 3 months ago

@chrassendk @michaelshimeles @vlad-svr @maZahaca Good news, guys!

I finally released the -rc version for @yoopta/exports 🔥 I also worked on examples to make it as convenient as possible for developers to understand how deserializers/serializers work. Check examples below 👇

So, what we have in current time:

But this task is still in progress. What missing in current version: - Cut content from editor

I think these minor bugs will be fixed soon and I'll publish a stable version ASAP.

Darginec05 commented 3 months ago

Done in v4.6.0 Examples - https://yoopta.dev/examples/withExports