Parcourir la source

Register global variable preventing showing the warning notification

panr il y a 5 ans
Parent
commit
bbdf10d926

+ 2 - 0
packages/ckeditor5-paste-from-office/docs/_snippets/features/paste-from-office.js

@@ -69,6 +69,8 @@ ClassicEditor
 	} )
 	.then( editor => {
 		window.editor = editor;
+		// Prevent showing a warning notification when user is pasting a content from MS Word or Google Docs.
+		window.preventPasteFromOfficeNotification = true;
 	} )
 	.catch( err => {
 		console.error( err.stack );