Skip to content
Permalink
Browse files

Merge branch 't/13317' into major

  • Loading branch information...
Reinmar committed Jun 1, 2015
2 parents 2e0eee9 + 9dea332 commit a4f0c973d463070098da5fc428b712021ac33bf8
Showing with 63 additions and 0 deletions.
  1. +29 −0 tests/plugins/clipboard/manual/buttons.html
  2. +34 −0 tests/plugins/clipboard/manual/buttons.md
@@ -0,0 +1,29 @@
<textarea cols="80" id="classic" name="classic" rows="10">
<p>¯\_(ツ)_/¯</p>
<blockquote>
<p>Success is going from failure to failure without losing enthusiasm.</p>
<cite>– Winston Churchill</cite>
</blockquote>
</textarea>

<script>
var editor = CKEDITOR.replace( 'classic', {
allowedContent: true
} );
editor.on( 'instanceReady', function() {
var editable = editor.editable();
editable.on( 'copy', function() {
editor.showNotification( 'copy event fired.' );
} );
editable.on( 'cut', function() {
editor.showNotification( 'cut event fired.' );
} );
editable.on( 'paste', function() {
editor.showNotification( 'paste event fired.' );
} );
} );
</script>
@@ -0,0 +1,34 @@
@bender-ui: collapsed
@bender-ckeditor-plugins: wysiwygarea, toolbar, clipboard, floatingspace, htmlwriter, blockquote, notification

1. Select some text in the editor.
2. Click the *Copy* button.
3. Click somewhere else.
4. Press `Ctrl + V` to paste the text.

#### Expected result:

**Chrome:** Selected text should be copied into clipboard and pasted into editor. Notifications should be opened for copy and paste.

**IE:** A security alert may be displayed &ndash; confirm it. After confirming it everything should be the same as in Chrome.

**Other browsers:** There should be a notification with information that copying is not available.

----

1. The same as above, but use the *Cut* button.

#### Expected result:

The same as above.

----

1. Copy some text from the editor.
2. Press the *Paste* button.

#### Expected result:

**IE:** A security alert may be displayed &ndash; confirm it. After confirming the content should be pasted.

**Other browsers:** The paste dialog should be displyed.

0 comments on commit a4f0c97

Please sign in to comment.
You can’t perform that action at this time.