-
Notifications
You must be signed in to change notification settings - Fork 40
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
[TODO] Create a new rich text editor component #105
Comments
@Dnouv This is a component that I need to use for organization information, Should I create it? Or Go with the normal text area component. |
Hey @Dnouv, I researched this and thought about going for any of the below two text editors (WYSIWYG): Each of them has its own advantages and disadvantages,
I am open to your suggestion :-) |
@Dnouv, I have researched a lot about the component. As we later want to display the content of text editor to HTML, There is a package named SLATE, It is the most lightweight yet powerful because of its modular approach. This can be best for our use case. Here is the current design and a working model screenshot of the text editor component for our app. My Approach
I am open to your suggestions and design improvements, I Hope I explained my approach well. |
Hey @Aashray446 Thank you so much for researching more about this. I will get back a satisfying answer for you, so I would request you to wait two more days; please feel free to ping me on Open Server if I forgot to reply back (well, the chances of this are slim). Thank you! |
I will be drafting a PR soon, till then you can suggest any UI changes if you want? Thank you :-) |
Create a new form input component that allows the user to do some formatting such as "Bold", "Italic", "Lists", and "Links". However, please note in the backend, we only store the data in
html
format, so this component should export the formatted input as simplehtml
. Take care of data sanitization since on the client side we are usingdangerouslysetInnerHtml
Preview of the editor component:
Please feel free to comment and ask questions, if any. Thank you!
The text was updated successfully, but these errors were encountered: