-
Notifications
You must be signed in to change notification settings - Fork 3
TinyMCE HTML Is Sometimes Stripped #111
Comments
@maxdumas Can you try POSTing/PATCHing to the api directly, without going through the intranet ui, in order to isolate the culprit? I don't think it's the api, but I'm not sure. |
As an update: It looks like TinyMCE on the front end is actually never generating the correct HTML/binding it to the model in the first place. Looking at the source window in the actual editor shows that no real HTML is generated. So this is definitely a front-end issue. Whether or not it's an issue with our code or angular-tinymce I'm going to look into now. |
Fixed a typo that incorrectly joined the elements of the allowedTags array as passed into valid_elements. Resolves #111
Ethan made a typo. :) |
#ethanfail |
P.S. Attributes are still getting stripped |
@maxdumas Any idea why this is still happening? |
This bug may be caused by/related to the TinyMCE textarea showing up even on some fields that don't take HTML. For example, I just loaded the related clubs add form, and the "Name" field was a tinymce input, even though the API docs return Note: the API docs are not consistent. Sometimes, plain-text-only fields have |
The check against |
Just tried to submit a details field on an event with
<ul>
and<li>
tags and they were stripped from the submitted HTML, even though they were supported by the editor. (The button was available in the toolbar and the WYSIWYG worked.) @ethanresnick any ideas why this might happen? Could it be an issue on the API's side?It's worth noting that wrapping
<p>
tags in the submitted HTML weren't stripped.The text was updated successfully, but these errors were encountered: