DemocracyOS / democracyos

Democracia en Red is focusing on specific implementations of DemocracyOS. We are working now working with governments and activists all over Latin America. If you are interested in our online participation tools you can check them out on our site.
https://democraciaos.org/en/
GNU General Public License v3.0
1.77k stars 616 forks source link

Add content editor for the non-geeks #438

Closed defvol closed 9 years ago

defvol commented 9 years ago

Problem Editing content with HTML markup is not nice for most users.

Proposal Would be awesome to add a WYSIWYG editor.

References You'll find tons of front-end js editors out there. We used CKEditor for a project and worked like a charm.

vmariano commented 9 years ago

Thanks for your contribution. We will be take in mind, and if you have time, feel free to send us a pull request with your proposal.

gvilarino commented 9 years ago

:+1:

sachalifs commented 9 years ago

Let's take a good look at quill.js.

Warning:

jfresco commented 9 years ago

We'll use Quill, but before we have to:

gvilarino commented 9 years ago

@slifszyc Quill supposedly supports/outputs HTML. I guess tables won't be a need for 95%+ of use cases so I wouldn't mind having that 5% rely on an external helper for tables. Let's worry about that once we get there for the 95%.

The link supplied by @jfresco provides useful information. I guess we can make separate issues out of this:

  1. Integrate vanilla quill.js as the editor in admin (by componentizing it; we'd get a DemocracyOS/quilljs fork - we can even PR it back to them)
  2. Make a quill.js custom module for each custom need of ours; these being:
    1. Add images via URL (probably already exists)
    2. Add video via URL (probably using embedresponsively)
jfresco commented 9 years ago

I sent a PR with the basic functionality just to start to give it flight hours. Pending stuff: