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

feat: Passing the content of the ai version of the editor #471

Open
alirezashalchian opened this issue Dec 27, 2024 · 3 comments
Open

feat: Passing the content of the ai version of the editor #471

alirezashalchian opened this issue Dec 27, 2024 · 3 comments

Comments

@alirezashalchian
Copy link

Describe the feature you'd like to request

how can i pass the editor content (everything a user types in the editor, or images, or embedded videos, with the exact same styles)

Describe the solution you'd like to see

assume i'm gonna use the editor for a blogging website, how can i pass whatever that is written in the editor to a single blog post when users post what they have written in the editor.
i would be grateful if anyone helped me with this.
thanks in advance.

Additional information

No response

@Trimud
Copy link

Trimud commented Dec 27, 2024

Hi, you need to set the editable attribute to false in EditorContent component.

@alirezashalchian
Copy link
Author

Hi @Trimud i really appreciate you taking time to answer,
so basically what i do is to use non-editable EditorContent inside any div i want ?

@Trimud
Copy link

Trimud commented Jan 5, 2025

Yes, that's the point. But keep in mind that this would be rendered client side as the editor uses "use client"

Another option is to follow this #456 (comment)

I am currently looking for a way to have this implemented in my prject but it makes me wonder why do I not use TipTap directly without Novel ueberdosis/tiptap#5528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants