Kaynağa Gözat

Merge pull request #95 from ckeditor/i/6324

Docs: Registered a global variable window.preventPasteFromOfficeNotification preventing showing a warning notification when user tries to paste content from MS Word or Google Docs. See ckeditor/ckeditor5#6324.
Piotrek Koszuliński 5 yıl önce
ebeveyn
işleme
a70796c547

+ 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 );