MDL-78745 editor_tiny: Stored text in non-entity form

TinyMCE has a default entity_encoding 'named',
which causes text with diacritic symbols to be converted to HTML entities,
e.g. pâté will be convert to pâté
That will be a problem with the Glossary auto-linking filter if a course has a text concept like pâté,
then the filter will likely fail to get the text concept.
Changing the TinyMCE entity_encoding to 'raw' will resolve the problem.
This commit is contained in:
meirzamoodle 2023-08-29 16:26:47 +07:00
parent 9bfcd77d51
commit a164fc5317
3 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -331,6 +331,11 @@ const getStandardConfig = (target, tinyMCE, options, plugins) => {
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
table_header_type: 'sectionCells', table_header_type: 'sectionCells',
// Stored text in non-entity form.
// https://www.tiny.cloud/docs/tinymce/6/content-filtering/#entity_encoding
// eslint-disable-next-line camelcase
entity_encoding: "raw",
setup: (editor) => { setup: (editor) => {
Options.register(editor, options); Options.register(editor, options);