X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpagebreak%2Fplugin.js;h=e3e05d56addae60512f15723b9e3a598212496cd;hb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7;hp=cd70e55fb7754f6a3483a50129eefda6d061ce9a;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/pagebreak/plugin.js b/_source/plugins/pagebreak/plugin.js index cd70e55..e3e05d5 100644 --- a/_source/plugins/pagebreak/plugin.js +++ b/_source/plugins/pagebreak/plugin.js @@ -32,10 +32,11 @@ CKEDITOR.plugins.add( 'pagebreak', 'clear: both;' + 'display: block;' + 'float: none;' + - 'width: 100%;' + + 'width:100% !important; _width:99.9% !important;' + 'border-top: #999999 1px dotted;' + 'border-bottom: #999999 1px dotted;' + - 'height: 5px;' + + 'height: 5px !important;' + + 'page-break-after: always;' + '}' ); }, @@ -61,7 +62,13 @@ CKEDITOR.plugins.add( 'pagebreak', childStyle = child && ( child.name == 'span' ) && child.attributes.style; if ( childStyle && ( /page-break-after\s*:\s*always/i ).test( style ) && ( /display\s*:\s*none/i ).test( childStyle ) ) - return editor.createFakeParserElement( element, 'cke_pagebreak', 'div' ); + { + var fakeImg = editor.createFakeParserElement( element, 'cke_pagebreak', 'div' ); + var label = editor.lang.pagebreakAlt; + fakeImg.attributes[ 'alt' ] = label; + fakeImg.attributes[ 'aria-label' ] = label; + return fakeImg; + } } } }); @@ -76,22 +83,39 @@ CKEDITOR.plugins.pagebreakCmd = exec : function( editor ) { // Create the element that represents a print break. + var label = editor.lang.pagebreakAlt; var breakObject = CKEDITOR.dom.element.createFromHtml( '