Skip to content

Commit

Permalink
fix(froala): create undo snapshot when formula inserted
Browse files Browse the repository at this point in the history
  • Loading branch information
icaparros-at-wiris committed Oct 23, 2023
1 parent 6caa165 commit da5f57e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/froala/wiris.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export class FroalaIntegration extends IntegrationModel {
const obj = super.insertFormula(focusElement, windowTarget, mathml, wirisProperties);

this.editorObject.placeholder.refresh();
this.editorObject.undo.saveStep();
return obj;
}
}
Expand Down
3 changes: 1 addition & 2 deletions packages/tinymce6/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = (config, context) => {
filename: './plugin.min.js',
globalObject: 'this',
},
devtool: "source-map",
devServer: {
devMiddleware: {
writeToDisk: true,
Expand All @@ -29,7 +28,7 @@ module.exports = (config, context) => {
// Set watch to true for dev purposes.
watch: false,
optimization: {
minimize: false,
minimize: true,
minimizer: [new TerserPlugin({
// These options prevent Terser from generating a LICENSE.txt file
terserOptions: {
Expand Down

0 comments on commit da5f57e

Please sign in to comment.