diff --git a/editors/demo/src/Editoria/config/config.js b/editors/demo/src/Editoria/config/config.js index 0cce640a9b8b1f83b0098e34d6a0349a190ab62d..5cc22496654502259e273a5874f1b40c93253104 100644 --- a/editors/demo/src/Editoria/config/config.js +++ b/editors/demo/src/Editoria/config/config.js @@ -74,7 +74,7 @@ const updateTrackStatus = status => { }; const onWarning = message => { - console.log(message); + alert(message); }; export default { diff --git a/wax-prosemirror-services/src/ImageService/ImageService.js b/wax-prosemirror-services/src/ImageService/ImageService.js index f24ac92000a4a45c8f5cc12618cbfaa9dd4d8dba..e23e55aacb3daff37a58d3eef73a286c3a6b3548 100644 --- a/wax-prosemirror-services/src/ImageService/ImageService.js +++ b/wax-prosemirror-services/src/ImageService/ImageService.js @@ -2,7 +2,6 @@ import { Service } from 'wax-prosemirror-core'; import { imageNode, figureCaptionNode, figureNode } from './schema'; import PlaceHolderPlugin from './plugins/placeHolderPlugin'; import captionPlugin from './plugins/captionPlugin'; -import disallowPasteImagesPlugin from './plugins/disallowPasteImagesPlugin'; import Image from './Image'; import './image.css'; import AltComponent from './AltComponent'; @@ -11,11 +10,6 @@ class ImageService extends Service { name = 'ImageService'; boot() { - // this.app.PmPlugins.add( - // 'disallowPasteImagesPlugin', - // disallowPasteImagesPlugin('disallowPasteImagesPlugin', this.app.context), - // ); - this.app.PmPlugins.add( 'imagePlaceHolder', PlaceHolderPlugin('imagePlaceHolder'),