Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 7514)
+++ /CKEditor/trunk/CHANGES.html (revision 7515)
@@ -59,4 +59,5 @@
#8997 : Styles are lost on sub-lists when convering list type.
#8917 : [IE7] Dialog size are stretched when long text field value is received.
+ #8945 : Fake elements now show alternative text on High Contrast mode.
Index: /CKEditor/trunk/_source/plugins/fakeobjects/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/fakeobjects/plugin.js (revision 7514)
+++ /CKEditor/trunk/_source/plugins/fakeobjects/plugin.js (revision 7515)
@@ -83,5 +83,4 @@
{
'class' : className,
- src : CKEDITOR.getUrl( 'images/spacer.gif' ),
'data-cke-realelement' : encodeURIComponent( realElement.getOuterHtml() ),
'data-cke-real-node-type' : realElement.type,
@@ -90,4 +89,8 @@
align : realElement.getAttribute( 'align' ) || ''
};
+
+ // Do not set "src" on high-contrast so the alt text is displayed. (#8945)
+ if ( !CKEDITOR.env.hc )
+ attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );
if ( realElementType )
@@ -124,5 +127,4 @@
{
'class' : className,
- src : CKEDITOR.getUrl( 'images/spacer.gif' ),
'data-cke-realelement' : encodeURIComponent( html ),
'data-cke-real-node-type' : realElement.type,
@@ -131,4 +133,8 @@
align : realElement.attributes.align || ''
};
+
+ // Do not set "src" on high-contrast so the alt text is displayed. (#8945)
+ if ( !CKEDITOR.env.hc )
+ attributes.src = CKEDITOR.getUrl( 'images/spacer.gif' );
if ( realElementType )
Index: /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js (revision 7514)
+++ /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js (revision 7515)
@@ -1196,5 +1196,5 @@
{
editor.addCss( 'html { height: 100% !important; }' );
- editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1; width : 24px; height : 24px; }' );
+ editor.addCss( 'img:-moz-broken { -moz-force-broken-image-icon : 1; min-width : 24px; min-height : 24px; }' );
}
// Remove the margin to avoid mouse confusion. (#8835)