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

How do I "view" the actual document being saved by the editor? #914

Closed
sam26880 opened this issue Oct 8, 2019 · 8 comments
Closed

How do I "view" the actual document being saved by the editor? #914

sam26880 opened this issue Oct 8, 2019 · 8 comments

Comments

@sam26880
Copy link

sam26880 commented Oct 8, 2019

First of all, thanks for a great tool :)

Is there a "view" mode vs "edit" mode? I'm able to edit the document just fine. I'm able to save the data as well. But now, I'd like to DISPLAY the saved data to the user WITHOUT actually showing the editing capability. Is there a built in way to do this? Am I missing anything?

Thanks in advance!

@utkarshrai003
Copy link

@sam26880 Did you find anything for this? Plugins like slate have view mode, but I could not find anything on editor js documentation though.

@sam26880
Copy link
Author

No I haven't found anything. The issue that I have is that when links are added, they are not clickable in the "default" mode which makes sense because default mode is the "EDIT" mode. So what I'm looking for is "VIEW" mode where the content is NOT editable AND the links are actually clickable.

@utkarshrai003
Copy link

Looks like we need to render the HTML ourselves with the clean data, which editor js provides. I am also looking to solve this and found this thread while researching. Maybe, this would be helpful to you as well.

#676

@sam26880
Copy link
Author

Got you. Yea seems like there are others looking for the same solution. I'll try some of their suggestions and see how it goes. Thanks for bringing that up.

@avdkishore
Copy link

There is this open issue which suggests that readOnly flag similar to what SlateJS provides is in their roadmap.

@sam26880
Copy link
Author

@sumitvekariya interesting. Thanks for that solution. I'm not using Angular. Any VueJS implementation would be helpful. Thanks again.

@khaydarov
Copy link
Member

read-only mode is published with v2.19

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

5 participants