Repository navigation
Feature: Added wysiwyg editor for api documentaion - #3904
sanish-bruno wants to merge 3 commits into
Conversation
…dencies and adjust layout
…rapper; update ModeSwitch component styles
…list styles and command state management, reactivity when in active state
|
This looks really cool! Thank you a lot for the Screen Cast provided. For me the toggling between text, editor and preview is a bit confusing. I would personally prefer to have three tabs instead of two modes to switch. What do you think about that approach? |
Initially thought about it, then landed on the toggle approach, wysiwyg is a visual editor, it didn't make sense to have a preview mode for wysiwyg, in order to segregate users who prefer wysiwyg or markdown, the toggle was introduced. Another thing that was taken into consideration was vertical space, if we implement 3 tab view, tabs will take up some vertical space, additionally, the tool bar will also take up some space, pushing the editor down. what are your thoughts on these? |
Well honestly, I thought about it quite a bit these days. And I did not really come to a conclusion. Your arguments are relatable and absolutely valid. However, I noticed I cannot think of an application with all three modes. Either you have Markdown and Preview or WYSIWYG and a Raw View (e.g. Atlassian Jira) but usually never all three. Do you think we should keep all three modes? Especially, if the editor has a accurate representation of the preview mode, what do we need the preview mode for? A pure read only mode does not make too much sense for me. Also to make things even more complicated (sorry about that) I was thinking of implementing a improved Syntax highlighting in the markdown view and keep the preview without the WYSIWYG editor. This would be my personal preference but I would absolutely understand if this is not the way to go. Choose whatever you think works best for Bruno, but with these considerations in mind it should be a good basis :) Thank you for all your efforts! |
|
Closing this PR as this is being worked upon in #8559 @nikischin If you have time, please checkout out latest implementation in PR - #8559 and share feedback |
Description
adding wysiwyg editor , and give the functionality to switch between the markdown and wysiwyg editors
Screen.Recording.2025-01-29.at.1.58.44.PM.mov
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.