-
Notifications
You must be signed in to change notification settings - Fork 115
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
Link-dropdown breaks in TinyMCE when other EditorConfig is used on one of the Elements #1120
Comments
I've done some initial investigation in to this, I can replicate this in CMS 4.13 and 5.1 though it looks very hard to fix this.
Seems like the existing system simply isn't designed to have multiple tinymce configs loaded at the same time. |
Thanks for looking into it @emteknetnz ! Because it is such a strange behavior, it took us a while to find the cause. So hopefully this issue will at least help future visitors identify and solve this problem (tldr: don't use multiple tinymce configs in combination with elemental). It's probably wiser to spend time on more common issues. Should we close this issue, or dou you want to leave it open? |
Just leave it open for now |
For others hitting this issue, I've found 2 slightly hacky work-arounds. Either:
|
I'm also experiencing this issue when the page has HTMLEditor fields that use a different config (eg for an intro field). This bug seems quite similar to this one: Perhaps the PR for that has some hints for how to fix this. |
@GuySartorelli I've added some AC's re merge-ups and contraints to follow - just update the constraints in the manual merge-up and ping me so I can double check them as a form of peer review |
|
Affected Version
This bug exists in ^4 and ^5 release lines.
I've tested it against
5.1.0
and4.11.0
Description
When using multiple TinyMCEConfig-configurations, for example to have a small editor and a full editor, the
sslink
dropdown stops working. This occurs when you have 2 (or more) different elements on one page, where one of them is using an own TinyMCEConfig-configuration. The link-functionality stops working. Only the first Element that was opened, will have a working link in the editor.tinymce-bug.mp4
Steps to Reproduce
or
Installer CI run
Some of these PRs won't be green until others are merged.
This is a CI run in silverstripe/installer showing that together they go green.
https://github.com/creative-commoners/silverstripe-installer/actions/runs/7634747838
Acceptance Criteria
PRs
NOTE after the admin PR is merged, reassign to Guy to set the correct constraint for the next two
cross-major mergeup commits to validate
The text was updated successfully, but these errors were encountered: