not yet on protocol
Add view source to text editor in admin
One of our clients wants to see the html source on the fields in admin that have the text editor enabled.
I'm wondering what's Decidim Product and the community opinion on this.
Thansk in advance for your comments.
5 comments
-
@carol what's your take on this ?
@pau did you have clients asking for this too ?
0 votes up 0 votes down-
Hey, this has been proposed several times now. I understand that there are security risks and therefore we need to be careful when implementing this option, but if it is in the admin panel it is less likely that such attacks will occur.
If it is to give format to the text though, I personally would prefer to use markdown instead of html.0 votes up 0 votes down
-
-
Hi @virgile_deville I think that sometimes editors are weird and having the option to exactly place the html you want is a plus.
0 votes up 0 votes down -
Hi! We've discussed this on the past: https://github.com/decidim/decidim/issues/1258
The problem was mainly on how do you allow back to use the WYSIWYG editor after you've made the editing on HTML.
0 votes up 0 votes down -
I came across this as we are having this issue.
My use case is for example to be able to add CTA buttons within text in several parts of Decidim which currently does not seem to be possible without having the option to view source to edit the HTML and/or having the option to add specific classes to what is already available.
Most CMS systems (Joomla, Drupal) allow you to control what tags can be used in HTML to provide a bit of control (and also to specify layouts available for different user groups, so admins get everything and the kitchen sink but regular users just a basic text formatting + image/video like what you see with Decidim), and also allow you to switch between view source/code mode. For example, CKEditor is a popular rich text editor that I've seen in those situations.
1 votes up 0 votes down
Sign in with your Atmosphere account to comment.