-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat(demos): Destroy MathType when the editor is destroyed #934
Conversation
packages/devkit/src/modal.js
Outdated
this.removeListeners(); | ||
this.overlay.remove(); | ||
this.container.remove(); | ||
// Reset propertie to allow open again. |
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.
// Reset propertie to allow open again. | |
// Reset properties to allow open again. |
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.
Fixed, thanks!
packages/froala/wiris.src.js
Outdated
@@ -117,6 +123,8 @@ export class FroalaIntegration extends IntegrationModel { | |||
} | |||
} | |||
|
|||
|
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.
Two unnecessary added lines: 126 & 127
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.
Fixed, thanks!
Util.removeElementEvents(eventTarget); | ||
} | ||
} |
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.
} | |
} |
Unnecessary added space
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.
Fixed, thanks!
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.
Great job!
Please @wiris/squad-mathtype-integrations can I get an additional review on the last commit? about the generic integration |
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.
Good job!
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.
Well done!
a71d62c
to
d7ce8e9
Compare
Description
This fix ensures that when the editor is closed all the MathType remainings (Modal, Events, Instances) are removed from the DOM.
The issue is fixed on #KB-44922
The branch #KB-44922-test adds additional tools to test the fix.
Steps to reproduce
Follow the next steps to reproduce.
Causes
The issue is caused because the MathType modal is not being removed from the DOM when the editor is destroyed.
#taskid 44922
#Child of taskid 44564