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
Editor live preview #3049
Comments
Thanks for the idea. It would require a big overhaul if we did agree to go with something like a live preview. One idea I had was adding a hotkey/keyboard shortcut to preview. Might be a good compromise? |
Yes it could. I prefer the live preview, but i understand your position with the setup/workflow you have right now. |
I created a separate issue for @Zhao-Andy's toggle suggestion: #3129 As for a live preview, we just discussed as a team and think it makes sense if someone wants to try creating an alternate editor that is a superset of our current ones. This could eventually be an editor that people chose as their default, that would include a live preview. Some notes on performance: since the preview is rendered server side, we'd probably have the preview update every few seconds, instead of on every keystroke. We can also take a look at how VS Code handles this for inspiration. |
Hi guys! What about integrating an editor as a library? Take a look at https://ui.toast.com/tui-editor/. It has already all we need for a markdown editor + live preview with synchronized scrolling. The lib is heavy (~1.2mb), but as it is open source, a custom light weight version could be developed. Meanwhile, I was thinking in droping a PR for adding keyboard shortcuts (ctrl +b, ctrl + i, etc). Looking forward to reading your comments on this. |
+1 for tui-editor suggested by @ioprotium |
How about having basic rendering written in JS like: |
You could definitely do this client-side like VS Code does or use some other markdown to HTML package to render the markdown. The real problem is rendering liquid tags. That’s the main reason the preview is currently server-side. |
+1 for tui editor and live preview editing by default it should work with an SSR(server side rendering) setup. |
Hello! Thanks for your contributions here.
You can read more about our Internal RFC Process and forem.dev Discussions in this post. |
Is your feature request related to a problem? Please describe.
I'm alwasy frustated while writing a blog post with the preview. I would like to see it live.
Describe the solution you'd like
Having on desktop one column with text editor on the left, and live preview on the right
Describe alternatives you've considered
A browser extension, but a little bit tricky.
The text was updated successfully, but these errors were encountered: