-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual test for pasting images with link.
- Loading branch information
Mateusz Samsel
committed
Oct 25, 2017
1 parent
5e91a6c
commit 534af88
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
tests/plugins/pastefromwordimage/manual/pasteimagewithlink.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<textarea id="editor" cols="30" rows="10"></textarea> | ||
<script> | ||
var editor = CKEDITOR.replace( 'editor' ); | ||
editor.on( 'loaded', function() { | ||
if ( !CKEDITOR.plugins.clipboard.isCustomDataTypesSupported || CKEDITOR.env.iOS ) { | ||
bender.ignore(); | ||
} | ||
} ); | ||
</script> |
16 changes: 16 additions & 0 deletions
16
tests/plugins/pastefromwordimage/manual/pasteimagewithlink.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@bender-tags: bug, 4.8.0, 662, pastefromwordimage | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, undo, pastefromwordimage, sourcearea, elementspath, newpage, resize | ||
|
||
---- | ||
|
||
1. Open document and copy whole content. | ||
1. Clear editor content. | ||
1. Paste copied content into CKEditor. | ||
|
||
### Perform above steps for all files: | ||
1. [Link_image.docx](../generated/_fixtures/Link_image/Link_image.docx) | ||
|
||
**Expected:** Images is visible and pasted only once. Image is wrapped with an anchor link. | ||
|
||
**Unexpected:** Image is not visible and/or img tag is placed twice. |