Skip to content

Commit

Permalink
fixed paste error message for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed May 3, 2016
1 parent 3b7c52b commit 6e3188d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/tinymce/classes/EditorCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ define("tinymce/EditorCommands", [
failed = TRUE;
}

// Chrome reports the paste command as supported however older IE:s will return false for cut/paste
if (command === 'paste' && !doc.queryCommandEnabled(command)) {
failed = true;
}

// Present alert message about clipboard access not being available
if (failed || !doc.queryCommandSupported(command)) {
var msg = editor.translate(
Expand Down

0 comments on commit 6e3188d

Please sign in to comment.