Skip to content

Commit

Permalink
Update manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Sep 24, 2019
1 parent 01b1eaf commit 6a9be50
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 22 deletions.
53 changes: 33 additions & 20 deletions tests/plugins/widget/manual/clipboardhtmlselectall.html
@@ -1,31 +1,44 @@
<div id="editor">
<h2>At boundaries</h2>
<div id="editor1">
<div data-widget="customwidget">Widget</div>
<p>Adipisicing corporis rem repellendus vel mollitia vero? Consectetur dolores voluptatibus illo ipsam eveniet? Lorem ipsum dolor sit amet.</p>
<div data-widget="customwidget">Widget</div>
</div>

<h2>In the middle</h2>
<div id="editor2">
<p>Adipisicing corporis rem repellendus</p>
<div data-widget="customwidget">Widget</div>
<p>vel mollitia vero? Consectetur dolores voluptatibus illo ipsam eveniet? Lorem ipsum dolor sit amet.</p>
</div>

<script>
if ( bender.env.mobile || !CKEDITOR.env.webkit ) {
bender.ignore();
}
( function() {
var editorConfig = {
extraAllowedContent: 'span',
extraPlugins: 'customwidget',
allowedContent: true
};

CKEDITOR.replace( 'editor', {
extraAllowedContent: 'span',
extraPlugins: 'customwidget',
allowedContent: true
} );
if ( bender.env.mobile || !CKEDITOR.env.webkit ) {
bender.ignore();
}

CKEDITOR.plugins.add( 'customwidget', {
requires: 'widget',
allowedContent: 'div',
CKEDITOR.replace( 'editor1', editorConfig );
CKEDITOR.replace( 'editor2', editorConfig );

init: function ( editor ) {
var counter = 0;
CKEDITOR.plugins.add( 'customwidget', {
requires: 'widget',
allowedContent: 'div',

editor.widgets.add( 'customwidget', {
button: 'Add widget',
template: '<div>Widget</div>'
} );
}
} );
init: function ( editor ) {
var counter = 0;

editor.widgets.add( 'customwidget', {
button: 'Add widget',
template: '<div>Widget</div>'
} );
}
} );
}() );
</script>
7 changes: 5 additions & 2 deletions tests/plugins/widget/manual/clipboardhtmlselectall.md
@@ -1,10 +1,13 @@
@bender-tags: 4.13.0, feature, 3138
@bender-tags: 4.13.0, feature, 3138, 3423
@bender-ui: collapsed
@bender-ckeditor-plugins: widget, undo, wysiwygarea, toolbar

For both editors:

1. Open console.
2. Select all.
3. Copy
3. Release all keys.
4. Copy.

## Expected

Expand Down

0 comments on commit 6a9be50

Please sign in to comment.