diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 17:54:04 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-12-04 17:54:04 +0100 |
commit | 317f8f8f0651488f226b5280a8f036c7c135c639 (patch) | |
tree | 97bd4889ab2822a00d4b0f0d5cde38b59f9f41de /sources/plugins/dialogui | |
parent | 1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c (diff) | |
download | piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.tar.gz piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.tar.zst piedsjaloux-ckeditor-component-317f8f8f0651488f226b5280a8f036c7c135c639.zip |
Add oembed4.7.3
Diffstat (limited to 'sources/plugins/dialogui')
-rw-r--r-- | sources/plugins/dialogui/plugin.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sources/plugins/dialogui/plugin.js b/sources/plugins/dialogui/plugin.js index 03fe753..ab36791 100644 --- a/sources/plugins/dialogui/plugin.js +++ b/sources/plugins/dialogui/plugin.js | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | 2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. |
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -72,7 +72,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
72 | if ( !this._.domOnChangeRegistered ) { | 72 | if ( !this._.domOnChangeRegistered ) { |
73 | dialog.on( 'load', function() { | 73 | dialog.on( 'load', function() { |
74 | this.getInputElement().on( 'change', function() { | 74 | this.getInputElement().on( 'change', function() { |
75 | // Make sure 'onchange' doesn't get fired after dialog closed. (#5719) | 75 | // Make sure 'onchange' doesn't get fired after dialog closed. (http://dev.ckeditor.com/ticket/5719) |
76 | if ( !dialog.parts.dialog.isVisible() ) | 76 | if ( !dialog.parts.dialog.isVisible() ) |
77 | return; | 77 | return; |
78 | 78 | ||
@@ -240,7 +240,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
240 | keyPressedOnMe = true; | 240 | keyPressedOnMe = true; |
241 | } ); | 241 | } ); |
242 | 242 | ||
243 | // Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749) | 243 | // Lower the priority this 'keyup' since 'ok' will close the dialog.(http://dev.ckeditor.com/ticket/3749) |
244 | me.getInputElement().on( 'keyup', function( evt ) { | 244 | me.getInputElement().on( 'keyup', function( evt ) { |
245 | if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) { | 245 | if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) { |
246 | dialog.getButton( 'ok' ) && setTimeout( function() { | 246 | dialog.getButton( 'ok' ) && setTimeout( function() { |
@@ -472,7 +472,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
472 | if ( typeof inputDefinition.inputStyle != 'undefined' ) | 472 | if ( typeof inputDefinition.inputStyle != 'undefined' ) |
473 | inputDefinition.style = inputDefinition.inputStyle; | 473 | inputDefinition.style = inputDefinition.inputStyle; |
474 | 474 | ||
475 | // Make inputs of radio type focusable (#10866). | 475 | // Make inputs of radio type focusable (http://dev.ckeditor.com/ticket/10866). |
476 | inputDefinition.keyboardFocusable = true; | 476 | inputDefinition.keyboardFocusable = true; |
477 | 477 | ||
478 | children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); | 478 | children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); |
@@ -537,7 +537,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
537 | ( function() { | 537 | ( function() { |
538 | element.on( 'click', function( evt ) { | 538 | element.on( 'click', function( evt ) { |
539 | me.click(); | 539 | me.click(); |
540 | // #9958 | 540 | // http://dev.ckeditor.com/ticket/9958 |
541 | evt.data.preventDefault(); | 541 | evt.data.preventDefault(); |
542 | } ); | 542 | } ); |
543 | 543 | ||
@@ -686,7 +686,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
686 | ' src="javascript:void(' | 686 | ' src="javascript:void(' |
687 | ]; | 687 | ]; |
688 | 688 | ||
689 | // Support for custom document.domain on IE. (#10165) | 689 | // Support for custom document.domain on IE. (http://dev.ckeditor.com/ticket/10165) |
690 | html.push( CKEDITOR.env.ie ? | 690 | html.push( CKEDITOR.env.ie ? |
691 | '(function(){' + encodeURIComponent( | 691 | '(function(){' + encodeURIComponent( |
692 | 'document.open();' + | 692 | 'document.open();' + |
@@ -1423,7 +1423,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
1423 | '<label id="', _.labelId, '" for="', inputId, '" style="display:none">', | 1423 | '<label id="', _.labelId, '" for="', inputId, '" style="display:none">', |
1424 | CKEDITOR.tools.htmlEncode( elementDefinition.label ), | 1424 | CKEDITOR.tools.htmlEncode( elementDefinition.label ), |
1425 | '</label>', | 1425 | '</label>', |
1426 | // Set width to make sure that input is not clipped by the iframe (#11253). | 1426 | // Set width to make sure that input is not clipped by the iframe (http://dev.ckeditor.com/ticket/11253). |
1427 | '<input style="width:100%" id="', inputId, '" aria-labelledby="', _.labelId, '" type="file" name="', | 1427 | '<input style="width:100%" id="', inputId, '" aria-labelledby="', _.labelId, '" type="file" name="', |
1428 | CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ), | 1428 | CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ), |
1429 | '" size="', | 1429 | '" size="', |
@@ -1446,7 +1446,7 @@ CKEDITOR.plugins.add( 'dialogui', { | |||
1446 | buttons[ i ].enable(); | 1446 | buttons[ i ].enable(); |
1447 | } | 1447 | } |
1448 | 1448 | ||
1449 | // #3465: Wait for the browser to finish rendering the dialog first. | 1449 | // http://dev.ckeditor.com/ticket/3465: Wait for the browser to finish rendering the dialog first. |
1450 | if ( CKEDITOR.env.gecko ) | 1450 | if ( CKEDITOR.env.gecko ) |
1451 | setTimeout( generateFormField, 500 ); | 1451 | setTimeout( generateFormField, 500 ); |
1452 | else | 1452 | else |