-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
fix(pat relateditems): Import Select2 module before calling it when not yet initialized #1342
Conversation
@thet Mind taking a look at this if you have some time? My understanding is that the mockup/src/pat/tinymce/js/links.js Line 101 in c9d330a
mockup/src/pat/tinymce/js/links.js Line 109 in c9d330a
select2 module not yet available.
I don't like my solution very much, but I believe a proper solution would require extensive refactoring, and could potentially break in unexpected places... Thoughts? |
Hi, I think using the
then:
There should be many examples in Patternslib. Hope that helps! I'm happy to review this later. |
2dbc1a4
to
b4738be
Compare
@thet Thank you for that! had no idea about the |
…ot yet initialized. fixes gh-1341
b4738be
to
c0f0be6
Compare
@thet I included my latest commit into this PR, which is totally unrelated to this fix, but I think it is a nice to have. Right now, it is not possible to add the "Insert Link" or "Insert Image" to the menu, they can only be added as buttons to the toolbar. Let me know if you want me to revert it and submit a separate PR for 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.
LGTM.
regarding the add image/add link in the insert menu - totally fine for me.
But you have this commit message: "Include ability to add the insert image and insert link in the insert menu". Shouldn't it be: "Include the insert image and insert link in the insert menu"? Because you aren't adding a ability but the menu items itself, right?
@thet No, you still need to add
|
This PR fixes gh-1341