datocms / product-roadmap

This project is now discontinued. For feature requests, please use our community forum.
https://community.datocms.com/
19 stars 1 forks source link

Customise options in HTML/Markdown Editor #6

Closed stefanoverna closed 5 years ago

stefanoverna commented 6 years ago

Would be great to be able to customise the editor toolbar and remove certain things. I'd like to allow only certain types of styling (e.g. only italic, no bold) or prevent clients from adding images.


Originally posted by admin@philipppolder.com

stefanoverna commented 6 years ago

Yes please!


Originally posted by webmaster@convincible.media

Convincible commented 6 years ago

One of the great things about the DatoCMS approach is we can protect clients from their own WYSIWYG nightmares. However, many clients find Markdown scary. I want to give them the HTML field, but:

  1. Disable things they aren't meant to add in that field, e.g. headings, tables, links
  2. Aggressively sanitise what they paste into this box. It should automatically:
    • Pare things right back to basic HTML (p, em, etc) with minimal nesting
    • Remove any inline styling e.g. <span style="...">
    • Fix any other glitches you get when pasting from MS Word e.g. random &nbsp;, mso classes, etc.
  3. And/or add "clear formatting" button to editor
stefanoverna commented 5 years ago

Now you can customize buttons!