-
Notifications
You must be signed in to change notification settings - Fork 67
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
Fix bug that caused &
to display and improve one-line rich-text fields
#4267
Conversation
By default, TinyMCE performs escaping on some characters entered via the rich-text editing interface (not the code view). We want minimal escaping, so entity_encoding = 'raw'. The TinyMCE docs on raw entity encoding: All characters will be stored in non-entity form except these XML default entities: &, <, >, ', and ".
7b8aff3
to
aa263db
Compare
&
to display and improve one-line rich-text fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment, looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very happy with this implementation. Well done @joemull.
As mentioned inline, it'd be good to fix any potentially corrupt journal title due to entity encoding (it is probably safe to only replace "&" but wouldn't harm to also fix encoded "<" and ">")
Couple minor comments regarding some class initialisers
Closes #4258.
This fixes a bug with ampersands reported in the issue above.
It also improves usability and handling of a number of related things:
text
,char
, ormini-html
to the appropriate type