-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Adding link via toolbar is broken in 3.2.0 #2671
Comments
I'm facing the same issue. |
I also had the same problem. |
Check the version installed in your package-lock; you may have to fix the version |
Unfortunately, the problem persisted even after deleting and reinstalling When I newly installed and opened the package-json.lock file, it was as follows. "node_modules/@toast-ui/editor": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/@toast-ui/editor/-/editor-3.2.0.tgz",
"integrity": "sha512-lEvbBSbvz5MvmTGHoDAYkco5B1os9C8B0IJmSj/iLmjSFQCtku1g4hFG4jKzTju9e+5wTosbDa3aYHAJAZK/QA==",
"dependencies": {
"dompurify": "^2.3.3",
"prosemirror-commands": "^1.1.9",
"prosemirror-history": "^1.1.3",
"prosemirror-inputrules": "^1.1.3",
"prosemirror-keymap": "^1.1.4",
"prosemirror-model": "^1.14.1",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.18.7"
}
},
"node_modules/@toast-ui/editor-plugin-table-merged-cell": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@toast-ui/editor-plugin-table-merged-cell/-/editor-plugin-table-merged-cell-3.1.0.tgz",
"integrity": "sha512-9ch9h1heTs0Kkmhwpb1ef9psQSM77wvUO3J75BsHv3RO5nAug42W3HC4Y+qbX5n1z1VhOGGjuOb4GPIr8s5dRA=="
},
"node_modules/@toast-ui/react-editor": {
"version": "3.1.10",
"resolved": "https://registry.npmjs.org/@toast-ui/react-editor/-/react-editor-3.1.10.tgz",
"integrity": "sha512-IY9uEIVKsOcWHuGf4kn08xILudhhNBbp3tGEvhpxpmhWiuFDKuEVBhTk/sUmFR4pytNefcvNi9wjzWU2BcYD+Q==",
"dependencies": {
"@toast-ui/editor": "^3.1.10"
},
"peerDependencies": {
"react": "^17.0.1"
}
}, However, one strange thing is that the node_modules/@toast-ui/editor = 3.2.0 Is there anything more I can check? |
@jooy2 Problem is in the dependency list of @toast-ui/react-editor (see in package-lock): I'm also on NextJS and this was fixed for me |
For peoples working with React in a Docker container, here is what worked for me
|
Thank you all! ▽▽▽▽ "@toast-ui/editor": "3.1.10",
"@toast-ui/editor-plugin-table-merged-cell": "3.1.0",
"@toast-ui/react-editor": "3.1.10", Anyway, I hope this issue has been forwarded to the TUI development team and resolved as soon as possible. |
I modified package.json, but it still throws an error. @jooy2 package.json "@toast-ui/chart": "^4.4.1",
"@toast-ui/react-editor": "3.1.10",
"@toast-ui/editor": "3.1.10",
"@toast-ui/editor-plugin-table-merged-cell": "3.1.0", yarn.lock "@toast-ui/chart@^4.4.1":
version "4.4.3"
resolved "https://registry.yarnpkg.com/@toast-ui/chart/-/chart-4.4.3.tgz#e3a5e00a1ce542cbefdba4ae6238828ccef5e7eb"
integrity sha512-lvv4g39uwl1DmsdlfrLxSf/qCGus7fDwWrWGlc5w9rcBidrWjZyFNmzfQC0Y/VycOPJR6YqfgPyY59R6+5eBsw==
"@toast-ui/editor-plugin-table-merged-cell@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@toast-ui/editor-plugin-table-merged-cell/-/editor-plugin-table-merged-cell-3.1.0.tgz#86422e2bc0dc2becf956aa7fa6cc5b45031e9611"
integrity sha512-9ch9h1heTs0Kkmhwpb1ef9psQSM77wvUO3J75BsHv3RO5nAug42W3HC4Y+qbX5n1z1VhOGGjuOb4GPIr8s5dRA==
"@toast-ui/editor@3.1.10":
version "3.1.10"
resolved "https://registry.yarnpkg.com/@toast-ui/editor/-/editor-3.1.10.tgz#11022bee8c8c8b80300eb556ac051b23c2c20f86"
integrity sha512-lzJxNM9lEbAxEqVAnLGqARLFqcVAPW3gwVOU0qKHf/IIwdhjZPjo8VDNQ4sPqOsC7vKCG35HVX8bNC+ab+Gzlg==
dependencies:
dompurify "^2.3.3"
prosemirror-commands "~1.1.9"
prosemirror-history "~1.1.3"
prosemirror-inputrules "~1.1.3"
prosemirror-keymap "~1.1.4"
prosemirror-model "~1.14.1"
prosemirror-state "~1.3.4"
prosemirror-transform "~1.3.0"
prosemirror-view "~1.18.7"
"@toast-ui/editor@^3.1.10":
version "3.2.0"
resolved "https://registry.yarnpkg.com/@toast-ui/editor/-/editor-3.2.0.tgz#5c0bca0be825465fdb786b2d70aa16ab9ca09c46"
integrity sha512-lEvbBSbvz5MvmTGHoDAYkco5B1os9C8B0IJmSj/iLmjSFQCtku1g4hFG4jKzTju9e+5wTosbDa3aYHAJAZK/QA==
dependencies:
dompurify "^2.3.3"
prosemirror-commands "^1.1.9"
prosemirror-history "^1.1.3"
prosemirror-inputrules "^1.1.3"
prosemirror-keymap "^1.1.4"
prosemirror-model "^1.14.1"
prosemirror-state "^1.3.4"
prosemirror-view "^1.18.7"
"@toast-ui/react-editor@3.1.10":
version "3.1.10"
resolved "https://registry.yarnpkg.com/@toast-ui/react-editor/-/react-editor-3.1.10.tgz#d5f62fa223190cea04f40eb6ef2aea1bae33ba6d"
integrity sha512-IY9uEIVKsOcWHuGf4kn08xILudhhNBbp3tGEvhpxpmhWiuFDKuEVBhTk/sUmFR4pytNefcvNi9wjzWU2BcYD+Q==
dependencies:
"@toast-ui/editor" "^3.1.10" |
@ChangHyun2 Have you tried yarn install again after deleting yarn.lock and node_module folder? It seems that react-editor still points to a higher version. |
if I write the So I moved package.json "dependencies": {
...
"@toast-ui/chart": "^4.4.3",
"@toast-ui/react-editor": "3.1.10",
},
"resolutions": {
"@toast-ui/react-editor/@toast-ui/editor": "3.1.10"
}, yarn.lock "@toast-ui/chart@^4.4.3":
version "4.4.3"
resolved "https://registry.yarnpkg.com/@toast-ui/chart/-/chart-4.4.3.tgz#e3a5e00a1ce542cbefdba4ae6238828ccef5e7eb"
integrity sha512-lvv4g39uwl1DmsdlfrLxSf/qCGus7fDwWrWGlc5w9rcBidrWjZyFNmzfQC0Y/VycOPJR6YqfgPyY59R6+5eBsw==
"@toast-ui/editor@3.1.10", "@toast-ui/editor@^3.1.10":
version "3.1.10"
resolved "https://registry.yarnpkg.com/@toast-ui/editor/-/editor-3.1.10.tgz#11022bee8c8c8b80300eb556ac051b23c2c20f86"
integrity sha512-lzJxNM9lEbAxEqVAnLGqARLFqcVAPW3gwVOU0qKHf/IIwdhjZPjo8VDNQ4sPqOsC7vKCG35HVX8bNC+ab+Gzlg==
dependencies:
dompurify "^2.3.3"
prosemirror-commands "~1.1.9"
prosemirror-history "~1.1.3"
prosemirror-inputrules "~1.1.3"
prosemirror-keymap "~1.1.4"
prosemirror-model "~1.14.1"
prosemirror-state "~1.3.4"
prosemirror-transform "~1.3.0"
prosemirror-view "~1.18.7"
"@toast-ui/react-editor@3.1.10":
version "3.1.10"
resolved "https://registry.yarnpkg.com/@toast-ui/react-editor/-/react-editor-3.1.10.tgz#d5f62fa223190cea04f40eb6ef2aea1bae33ba6d"
integrity sha512-IY9uEIVKsOcWHuGf4kn08xILudhhNBbp3tGEvhpxpmhWiuFDKuEVBhTk/sUmFR4pytNefcvNi9wjzWU2BcYD+Q==
dependencies:
"@toast-ui/editor" "^3.1.10" But when i create +++ This error is in the other issue. |
I edited package.json, and it works. "resolutions": {
"@toast-ui/react-editor/@toast-ui/editor": "3.1.8"
}, |
Related: #2729 |
check v3.2.1 please, if you use react or vue wrapper, you need to use v3.2.2 |
Describe the bug
I am unable to add a link in wysiwyg mode - after typing the values into the fields and pressing "OK", I get this error in the console:
And I've managed to track down the error to this file
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Link toolbar button works
Screenshots
I took some screenshots of index.js where the error was occurring, the issue seems to be due to compiling at some point.
The defined function is getCustomAttrs$1() but is being called as getCustomAttrs()
Desktop (please complete the following information):
Additional context
My environment: vuejs application
Vuejs 2.6.11
I am not using the vue-editor wrapper
Other toolbar buttons work as intended, I am having no other issues with the editor so far.
The text was updated successfully, but these errors were encountered: