diff --git a/packages/froala/wiris.src.js b/packages/froala/wiris.src.js index 53dc4e64a..3364cce37 100644 --- a/packages/froala/wiris.src.js +++ b/packages/froala/wiris.src.js @@ -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; } } diff --git a/packages/tinymce6/webpack.config.js b/packages/tinymce6/webpack.config.js index bdb0faf97..36fffd4cd 100644 --- a/packages/tinymce6/webpack.config.js +++ b/packages/tinymce6/webpack.config.js @@ -13,7 +13,6 @@ module.exports = (config, context) => { filename: './plugin.min.js', globalObject: 'this', }, - devtool: "source-map", devServer: { devMiddleware: { writeToDisk: true, @@ -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: {