forked from ckeditor/ckeditor4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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,45 @@ | ||
<div id="editor"> | ||
<p>Somebody once told me the world is gonna roll me…</p> | ||
</div> | ||
|
||
<button id="press">Open Dialog</button> | ||
<script> | ||
( function() { | ||
if ( bender.tools.env.mobile ) { | ||
return bender.ignore(); | ||
} | ||
|
||
var editor = CKEDITOR.replace( 'editor' ); | ||
|
||
CKEDITOR.once( 'instanceLoaded', function() { | ||
CKEDITOR.dialog.add( 'testDialog', function() { | ||
return { | ||
title: 'Test dialog', | ||
contents: [ | ||
{ | ||
id: 'tab1', | ||
label: 'Tab one', | ||
elements: [ | ||
{ | ||
type: 'html', | ||
id: 'field11', | ||
html: 'foo' | ||
} | ||
] | ||
} | ||
], | ||
buttons: [], | ||
onShow: function() { | ||
this.setState( CKEDITOR.DIALOG_STATE_BUSY ); | ||
} | ||
} | ||
} ); | ||
|
||
editor.addCommand( 'testDialog', new CKEDITOR.dialogCommand( 'testDialog' ) ); | ||
} ); | ||
|
||
CKEDITOR.document.getById( 'press' ).on( 'click', function() { | ||
editor.execCommand( 'testDialog' ); | ||
} ); | ||
} )(); | ||
</script> |
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,13 @@ | ||
@bender-tags: 4.16.3, bug, 4888 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, link, image | ||
|
||
1. Open the console. | ||
2. Press "Open dialog" button. | ||
|
||
**Expected** There is a spinner in the dialog's title bar and no errors in the console. | ||
|
||
**Unexpected** There is no spinner in the dialog's title bar or some errors in the console. | ||
3. Close the dialog | ||
|
||
**Expected** No new errors appear in the console. |
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
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