mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
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:
parent
9bfcd77d51
commit
a164fc5317
2
lib/editor/tiny/amd/build/editor.min.js
vendored
2
lib/editor/tiny/amd/build/editor.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -331,6 +331,11 @@ const getStandardConfig = (target, tinyMCE, options, plugins) => {
|
||||
// eslint-disable-next-line camelcase
|
||||
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) => {
|
||||
Options.register(editor, options);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user