-
Notifications
You must be signed in to change notification settings - Fork 96
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 custom config doesnt trigger if not in Main tab unless the skin is explicitly set #1457
Comments
Update: ...to be continued |
Can you please paste the code as text in code blocks instead of images? It will make reproducing this a lot easier if we can just copy the code into a test project. |
@GuySartorelli . Ofcourse. My issue is updated. |
Thanks. Sounds like it might be related to (or potentially the same as) silverstripe/silverstripe-framework#10673 |
@ButerRick The trick is to explicitly set the editor skin to |
@sirtoobii can you please explain what you mean with editor skin? And where do I set this? |
Hey @ButerRick
|
@sirtoobii Adding 'skin' => 'silverstripe', to options worked like a charm. I'm letting @GuySartorelli determine if this can be closed or not |
Adding the skin is one thing, we need to determine whether adding/adjusting any config option has the same effect, i.e. whether it's about invoking and setting the config in general or whether the skin is the culprit. |
I've changed the name of the issue slightly to reflect the new information - but this is definitely still a bug. If it is just not adding the skin that causes this, it should fall back to the tinymce default skin, I'd have thought. |
This issue has been tested on CMS 5 and CMS 4. CMS 5 doesn't have this issue. Issue was fixed in CMS 4. |
PR merged and tagged as 1.13.1 |
So I made different tinyMCE configurations so that I would be able to set different styled of HTMLEditorFields in my project.
It all worked very well with 1 configuration, but when I added more I noticed the issue.
So the official issue is this:
After visiting a page where this htmlEditor with the config exists it does load.
This is my _config.php
Now when I use one of these configs, I put it in the htmlEditorField like this:
$fields->addFieldsToTab('Root.Hero', [ HTMLEditorField::create('PageTitle') ->setTitle('Titel') ->setRows(15) ->setEditorConfig('header-config'), ...
So this one doesnt sit on Root.Main, so it doesnt load the config.
And I see that certain styles are not beeing found:
When I visit a page where the config is loaded on root.Main, everything loads and I can see it everywhere.
I made a gif for example:
I hope this is enough information. Otherwise I will provide more.
Acceptance criteria
PR
The text was updated successfully, but these errors were encountered: