-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
BUG: Can not add a link: getModel() fails with: TypeError: $ is not a function #5536
Closed
2 tasks done
Comments
adiux
changed the title
BUG: getModel() fails with: TypeError: $ is not a function
BUG: Can not add a link: getModel() fails with: TypeError: $ is not a function
Nov 29, 2023
This was referenced May 24, 2024
This was referenced Aug 27, 2024
This was referenced Sep 20, 2024
This was referenced Oct 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GrapesJS version
What browser are you using?
Chrome Version 119
Reproducible demo link
https://jsfiddle.net/bj7afw63/1/
Describe the bug
How to reproduce the bug?
What is the expected behavior?
A link is added in the UI inside the mj-text component.
What is the current behavior?
The link is not added.
What I found out so far
I tracked the error to the GJS method: getModel().
It appears that the
mj-text
component does not have theel.__cashData
.Just returning the
el
is also not a solution as this leads to other problems:TypeError: model_1.once is not a function
But the link is added to the editor.
I assume this is related to
mj-text
being defined on the outside<tr>
instead of the passed in<div>
:Code of Conduct
The text was updated successfully, but these errors were encountered: