Your browser doesn‘t support pasting with the toolbar button or context menu option
Hello everyone how are you? I'm going to add the text editor bar by using the code the CKEDITOR every thing is run good but problem is that when I click on the editor copy and past button then its give me error like
Press Ctrl+V to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.
Press Ctrl+Shift+V to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.
Press Ctrl+V to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.
Can anyone please tell me what's I can do to solve this error its start work when I click on the text editor button and at the last the error I would like to show you in pic so the bellow pic is the error maybe you can understand easily when seeing the error pic
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Editor Example</title>
<script src="https://cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script>
</head>
<body>
<textarea name="text_editor"></textarea>
<script>
CKEDITOR.replace( 'text_editor' );
</script>
</body>
Try this code
CKEDITOR.on("instanceReady", function(event) {
event.editor.on("beforeCommandExec", function(event) {
// Show the paste dialog for the paste buttons and right-click paste
if (event.data.name == "paste") {
event.editor._.forcePasteDialog = true;
}
// Don't show the paste dialog for Ctrl+Shift+V
if (event.data.name == "pastetext" && event.data.commandData.from == "keystrokeHandler") {
event.cancel();
}
})
});