X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fludivine-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fplugins%2Fwysiwygarea%2Fplugin.js;h=1358129850e2914992e7465e61624154536c1024;hp=962f31e9471fc113d40739c5ba5bc8a24262a964;hb=1794320dcfdfcd19572fb1676294f9853a6bbc20;hpb=7183f6a6a21ad9124e70c997e0168459f377a9f2 diff --git a/sources/plugins/wysiwygarea/plugin.js b/sources/plugins/wysiwygarea/plugin.js index 962f31e..1358129 100644 --- a/sources/plugins/wysiwygarea/plugin.js +++ b/sources/plugins/wysiwygarea/plugin.js @@ -29,7 +29,7 @@ // With IE, the custom domain has to be taken care at first, // for other browers, the 'src' attribute should be left empty to // trigger iframe's 'load' event. - // Microsoft Edge throws "Permission Denied" if treated like an IE (#13441). + // Microsoft Edge throws "Permission Denied" if treated like an IE (http://dev.ckeditor.com/ticket/13441). if ( CKEDITOR.env.air ) { src = 'javascript:void(0)'; // jshint ignore:line } else if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) { @@ -139,7 +139,7 @@ body.hideFocus = true; // Disable and re-enable the body to avoid IE from - // taking the editing focus at startup. (#141 / #523) + // taking the editing focus at startup. (http://dev.ckeditor.com/ticket/141 / http://dev.ckeditor.com/ticket/523) body.disabled = true; body.removeAttribute( 'disabled' ); } @@ -156,19 +156,19 @@ var editable = this; - // Without it IE8 has problem with removing selection in nested editable. (#13785) + // Without it IE8 has problem with removing selection in nested editable. (http://dev.ckeditor.com/ticket/13785) if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) { doc.getDocumentElement().addClass( doc.$.compatMode ); } - // Prevent IE/Edge from leaving a new paragraph/div after deleting all contents in body. (#6966, #13142) + // Prevent IE/Edge from leaving a new paragraph/div after deleting all contents in body. (http://dev.ckeditor.com/ticket/6966, http://dev.ckeditor.com/ticket/13142) if ( CKEDITOR.env.ie && !CKEDITOR.env.edge && editor.enterMode != CKEDITOR.ENTER_P ) { removeSuperfluousElement( 'p' ); } else if ( CKEDITOR.env.edge && editor.enterMode != CKEDITOR.ENTER_DIV ) { removeSuperfluousElement( 'div' ); } - // Fix problem with cursor not appearing in Webkit and IE11+ when clicking below the body (#10945, #10906). + // Fix problem with cursor not appearing in Webkit and IE11+ when clicking below the body (http://dev.ckeditor.com/ticket/10945, http://dev.ckeditor.com/ticket/10906). // Fix for older IEs (8-10 and QM) is placed inside selection.js. if ( CKEDITOR.env.webkit || ( CKEDITOR.env.ie && CKEDITOR.env.version > 10 ) ) { doc.getDocumentElement().on( 'mousedown', function( evt ) { @@ -196,7 +196,7 @@ // PageUp OR PageDown if ( keyCode == 33 || keyCode == 34 ) { // PageUp/PageDown scrolling is broken in document - // with standard doctype, manually fix it. (#4736) + // with standard doctype, manually fix it. (http://dev.ckeditor.com/ticket/4736) if ( CKEDITOR.env.ie ) { setTimeout( function() { editor.getSelection().scrollIntoView(); @@ -205,7 +205,7 @@ // Page up/down cause editor selection to leak // outside of editable thus we try to intercept // the behavior, while it affects only happen - // when editor contents are not overflowed. (#7955) + // when editor contents are not overflowed. (http://dev.ckeditor.com/ticket/7955) else if ( editor.window.$.innerHeight > this.$.offsetHeight ) { var range = editor.createRange(); range[ keyCode == 33 ? 'moveToElementEditStart' : 'moveToElementEditEnd' ]( this ); @@ -221,14 +221,14 @@ // focus is moved onto a non-editing host, e.g. link or button, but // it becomes a problem for the object type selection, since the resizer // handler attached on it will mark other part of the UI, especially - // for the dialog. (#8157) + // for the dialog. (http://dev.ckeditor.com/ticket/8157) // [IE<8 & Opera] Even worse For old IEs, the cursor will not vanish even if - // the selection has been moved to another text input in some cases. (#4716) + // the selection has been moved to another text input in some cases. (http://dev.ckeditor.com/ticket/4716) // // Now the range restore is disabled, so we simply force IE to clean // up the selection before blur. this.attachListener( doc, 'blur', function() { - // Error proof when the editor is not visible. (#6375) + // Error proof when the editor is not visible. (http://dev.ckeditor.com/ticket/6375) try { doc.$.selection.empty(); } catch ( er ) {} @@ -237,14 +237,14 @@ if ( CKEDITOR.env.iOS ) { // [iOS] If touch is bound to any parent of the iframe blur happens on any touch - // event and body becomes the focused element (#10714). + // event and body becomes the focused element (http://dev.ckeditor.com/ticket/10714). this.attachListener( doc, 'touchend', function() { win.focus(); } ); } var title = editor.document.getElementsByTag( 'title' ).getItem( 0 ); - // document.title is malfunctioning on Chrome, so get value from the element (#12402). + // document.title is malfunctioning on Chrome, so get value from the element (http://dev.ckeditor.com/ticket/12402). title.data( 'cke-title', title.getText() ); // [IE] JAWS will not recognize the aria label we used on the iframe @@ -292,7 +292,7 @@ // 2. On keyup remove all elements that were not marked // as non-superfluous (which means they must have had appeared in the meantime). // Also we should preserve all temporary elements inserted by editor – otherwise we'd likely - // leak fake selection's content into editable due to removing hidden selection container (#14831). + // leak fake selection's content into editable due to removing hidden selection container (http://dev.ckeditor.com/ticket/14831). editable.attachListener( editable, 'keyup', function() { var elements = doc.getElementsByTag( tagName ); if ( lockRetain ) { @@ -312,7 +312,7 @@ this._.frameLoadedHandler = CKEDITOR.tools.addFunction( function( win ) { // Avoid opening design mode in a frame window thread, - // which will cause host page scrolling.(#4397) + // which will cause host page scrolling.(http://dev.ckeditor.com/ticket/4397) CKEDITOR.tools.setTimeout( onDomReady, 0, this, win ); }, this ); @@ -330,7 +330,7 @@ this.fixInitialSelection(); // Fire dataReady for the consistency with inline editors - // and because it makes sense. (#10370) + // and because it makes sense. (http://dev.ckeditor.com/ticket/10370) editor.fire( 'dataReady' ); } else { @@ -420,7 +420,7 @@ } // The script that launches the bootstrap logic on 'domReady', so the document - // is fully editable even before the editing iframe is fully loaded (#4455). + // is fully editable even before the editing iframe is fully loaded (http://dev.ckeditor.com/ticket/4455). var bootstrapCode = '