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

[UI] Rich Text Editor #222

Closed
comtom opened this issue Oct 9, 2013 · 9 comments
Closed

[UI] Rich Text Editor #222

comtom opened this issue Oct 9, 2013 · 9 comments

Comments

@comtom
Copy link

comtom commented Oct 9, 2013

It would be very nice & handy to have a full featured text editor as a component.

There are several examples, like CLEditor or TinyMCE. TinyMCE is one of the most popular, but there are some better like this one:

http://mindmup.github.io/bootstrap-wysiwyg/

it has some bugs but is great. I've encountred problems while pasting MS Word styled text, except that it works great.

@jlukic
Copy link
Member

jlukic commented Oct 9, 2013

https://github.com/daviferreira/medium-editor
http://jakiestfu.github.io/Medium.js/docs/

@brigand
Copy link
Contributor

brigand commented Oct 9, 2013

@javajack
Copy link

Any editor you pick, should have Markdown rendering and rich text to markdown capability.
It is always good to store markdown in database than the XSS vulnerable html code !

@brigand
Copy link
Contributor

brigand commented Oct 14, 2013

@javajack "XSS" isn't a problem as far as the editor's concerned. If people want to insert stuff, they'll bypass the editor and make a direct request to the server.

Also, Markdown makes an assumption about the server, which we can't really do. Markdown could be an option, along with other rich text formats. Generally, there's an option to convert basic HTML into any of these formats, which might be the most general approach (e.g. html2markdown for markdown, unoconv converts to mostly everything else).

Most formats are simple enough to convert html to, that an average programmer could write one in an afternoon. I think it's best to leave that outside of this project.

A round trip could look like this:

  • request markdown from server
  • use pagedown to convert markdown to html
  • user edits in the editor
  • html2markdown to get markdown back
  • send markdown to server

@oknoorap
Copy link

http://sofish.github.io/pen/ (like medium editor)

@einkoro einkoro closed this as completed Apr 14, 2015
@einkoro einkoro reopened this Apr 14, 2015
@jlukic jlukic changed the title Rich Text - Module [UI] - Rich Text Editor Aug 6, 2015
@jlukic jlukic changed the title [UI] - Rich Text Editor [UI] Rich Text Editor Aug 6, 2015
@salarmehr
Copy link

I would be nice to include a very lightweight markdown editor.

@rubydog
Copy link

rubydog commented Jul 18, 2016

@oknoorap Have you been able to get pen editor working? In my case the javascript seems to be working fine but it I can't see the tooltip when I select text in text area.

@hubertguillemain
Copy link

Coming back on this topic: there are many Rich text editors out there, absolutely
I think the requirement is to maintain look and feel with the rest of Semantic UI (buttons, font, focus, ....)

@stale
Copy link

stale bot commented Feb 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

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

9 participants