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

[Feature Request] Add a rich text editors #1053

Closed
davidnalbandian143 opened this issue Apr 20, 2020 · 7 comments
Closed

[Feature Request] Add a rich text editors #1053

davidnalbandian143 opened this issue Apr 20, 2020 · 7 comments

Comments

@davidnalbandian143
Copy link

I am trying to add rich text editor but the issue is text is not properly display in front end

@davidnalbandian143 davidnalbandian143 changed the title Can any one add rich text editors to API to this application Can any one add rich text editors API to this application Apr 20, 2020
@YasharF YasharF changed the title Can any one add rich text editors API to this application [Feature Request] Add a rich text editors Jul 10, 2020
@YasharF
Copy link
Collaborator

YasharF commented Jul 10, 2020

We need to figure out use cases.

If I understood your request correctly, you would like an example where a user can enter some rich text, which will be displayed on a page after the submission. Is that correct?

What would be other use cases for a rich text editor that you think may come handy?

@YasharF
Copy link
Collaborator

YasharF commented Oct 6, 2020

Before implementing a solution for this, I would like to see some suggestions on potential solutions. Please note that one of the current goals is to keep the dependency tree within a reasonable size.

@Rodriq
Copy link

Rodriq commented Oct 7, 2020

I'd love to handle this, but then like you mentioned above what are the use cases?
On what pages will this feature be needed? @YasharF

@YasharF
Copy link
Collaborator

YasharF commented Oct 7, 2020

@Rodriq I am open to suggestions. I can think of a few potential use cases:

  1. An alternate contact us page (under /api), where the user can format the text being sent to the site admin.
  2. A form that the user can enter formatted text, which will be posted back on the page after the submission.
  3. A combination, or something else

Note that in both cases, the incoming data needs to be sanitized to avoid potential XSS or other volunerabilites. It would be also appropriate to have these as a standalone API example (i.e. a view under /api).

The bigger goal is to have a working example, so developers could quickly modify our example and add their own business logic in order to make the application that they have in mind.

@dnafication
Copy link
Contributor

dnafication commented Oct 24, 2020

I think a simple blog api (CRUD) can be added to the project which takes in title, subtitle and content. Content will store the rich text (I believe markdown is good enough these days to capture rich text).

Do you have any suggestion on which editor is suitable for this? I found options below to go with:

  1. https://github.com/quilljs/quill/ (this most probably does not return markdown)
  2. https://github.com/nhn/tui.editor (this one works with markdown)

This will probably also cater for #1067

@Athira2199
Copy link

Hi, for text editors we can use something like ckeditor. Its quiet straightforward and has many functionalities. I would like to contribute.
Please refer this link : https://ckeditor.com/

@abby3010
Copy link

abby3010 commented Oct 5, 2021

I was thinking about adding the Rich text editor on the contact page by replacing or adding it below the suggestion's textarea.
Alternatively, we can also add it to the landing page below all the headings.

image

Some packages that I found would help are:
tinymce
draft-js
react-rte

If possible can you assign it to me? I'll start working right away!

@sahat sahat closed this as completed Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants