-
Notifications
You must be signed in to change notification settings - Fork 109
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
TinyMCE Related Console Warnings #3424
Comments
Testing
|
Testing
|
The following describes the observed behaviour:https://www.tiny.cloud/docs/tinymce/latest/autoresize/#min_height //app/javascript/src/utils/tinymce.js
export const defaultOptions = {
selector: '.tinymce',
statusbar: true,
menubar: false,
toolbar: 'bold italic | bullist numlist | link | table',
plugins: 'table autoresize link advlist lists autolink',
browser_spellcheck: true,
advlist_bullet_styles: 'circle,disc,square', // Only disc bullets display on htmltoword
target_list: false,
elementpath: false,
resize: true,
min_height: 230, Our codebase has 'autoresize' included within Also, autoresize_min_height was replaced with min_height in tinymce v5:https://www.tiny.cloud/blog/how-to-migrate-from-tinymce-4-to-tinymce-5/ |
Prior to this change, `Invalid value passed for the forced_root_block option. Must be a non-empty string.` would be rendered as a console warning. - This commit removes the console warning, but it shouldn't have an effect on the app's behaviour. Even when `forced_root_block: ''` existed, the entries would be saved with <p></p> tags surrounding them. (Documented here: #3424 (comment) )
Prior to this change,`tinymceEditor.settings` was evaluating to `undefined`. Also, TinyMCE replaced `autoresize_min_height` replaced with `min_height` with the release of v5. We have `min_height` included in our defaultOptions object within `app/javascript/src/utils/tinymce.js`. The value of `min_height` appears to be performing the functionality that this removed code was attempting to. This change is more comprehensively documented here: #3424 (comment)
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
v4.2.0
("tinymce": "^6.4.1"
)Description
The following console warnings are visible with this version
http://127.0.0.1:3000/super_admin/notifications/9/edit
Related code
app/javascript/src/superAdmin/notifications/edit.js
http://127.0.0.1:3000/plans/:id
(on any plan that has "Research outputs may have ethical concerns" checked)Related code
app/javascript/src/utils/conditionalFields.js
The text was updated successfully, but these errors were encountered: