-
Notifications
You must be signed in to change notification settings - Fork 4
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
Change dependency: ngx-jodit instead of jodit-angular #736
Conversation
I can't seem to switch back to |
I see the following TypeScript warnings now:
I think maybe the |
Found a bug when editing existing HTML content:
Some sort of binding issue it seems, perhaps |
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.
The code changes look fine but found some functional issues when testing. Could you review them please?
package.json
Outdated
@@ -60,8 +60,7 @@ | |||
"diff-match-patch": "^1.0.5", | |||
"dmn-js": "^10.1.0", | |||
"graphlib": "2.1.8", | |||
"jodit": "^3.5.4", | |||
"jodit-angular": "^1.12.3", | |||
"jodit": "^3.24.2", |
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.
Should we be trying to avoid the ^
symbol for npm package dependencies? The various bots running against the repo to check dependencies seem to want to change them to hard, concrete versions to avoid any version mismatch.
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.
I've read this: https://docs.renovatebot.com/dependency-pinning/. It all makes sense... I think you're right, we should go with their suggestion and pin dependencies. I've pushed a commit to do this
You're right - they've changed the way icons work in Jodit. I couldn't find one I liked in their default set, so I've pushed a commit with a new SVG and a change to code. |
Great catch - thank you! I believe I've now done the right thing by binding |
I don't get these when I upgrade to angular 14, so maybe this is just a temporary thing. There are lots of other warnings then though, so maybe we could have a separate ticket to remove any remaining build warnings once we've completed the upgrade |
@pjmonks Thank you so much for your thorough review - I'm glad we're picking up these issues that would have been difficult to spot amongst a much bigger upgrade. |
I've done some more investigation:
So I think we might be ready for re-testing on this one 👍 |
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.
Re-tested and the changes are functioning better now, looks no different using the new Jodit wrapper compared to before 👍
Approved ✔️
Fixes #735