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
Include TinyMCE 4.7.6 #832
Conversation
The issue in #764 seems to have been because of a piece of code in tinymce.js as follows:
Which should call initEditor after it tries to load the Now, this
And it is being called fine when you load tinymce in the browser, but it is not when doing it from the tests (Because of the css issue I mentioned). The problem with this, is that when .save() is called, it has this:
which is the reason on why the test was failing in #764 but when manually trying tinymce in the browser, everything worked fine. In order to have the tests passing, I am doing this: As it can be seen, I was expecting to only do it in the tinymce test, and this worked fine, however this affects other tests, like the textareamimetypeselector... I ended up adding the initialized flag in the pattern itself, this doesn't seem to bring any unwanted side effect, nor prevents the I don't know if this is a proper fix, or if someone has a better idea? |
LGTM for me too. |
@import (less) "@{bowerPath}/tinymce-builded/js/tinymce/skins/lightgray/Content.Objects.less"; | ||
@import (inline) "@{bowerPath}/tinymce-builded/js/tinymce/plugins/visualblocks/css/visualblocks.css"; | ||
@import (inline) "@{bowerPath}tinymce-builded/js/tinymce/skins/lightgray/skin.min.css"; | ||
@import (inline) "@{bowerPath}tinymce-builded/js/tinymce/skins/lightgray/content.min.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frapell Would you rememer any specific reason for using (inline)
instead of (css)
here? I found out webpack builds failing, because (inline)
makes less-leader import context to be the folder of pattern and webpack cannot find images and fonts below the skin folder. I wonder how normal Plone works with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@datakurre Honestly not... if you change it to (css)
works? If so, I would say we can change it...
No description provided.