Skip to content

Commit 4cdcded

Browse files
committed
Merge branch 't/11085'
2 parents 37761cf + 4baebef commit 4cdcded

File tree

3 files changed

+218
-156
lines changed

3 files changed

+218
-156
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Fixed Issues:
1212

1313
* [#11244](http://dev.ckeditor.com/ticket/11244): Changed: The [`widget.repository.checkWidgets`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-checkWidgets) method now fires the [`widget.repository.checkWidgets`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-event-checkWidgets) event, so from CKEditor 4.3.1 it's preferred to use method rather than fire event.
1414
* [#11171](http://dev.ckeditor.com/ticket/11171): Fixed: [`editor.insertElement`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) and [`editor.insertText`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText) methods do not call the [`widget.repository.checkWidgets`](http://docs.ckeditor.com/#!/api/CKEDITOR.plugins.widget.repository-method-checkWidgets) method.
15+
* [#11085](http://dev.ckeditor.com/ticket/11085): [IE8] Replaced preview generated by [Mathematical Formulas](http://ckeditor.com/addon/mathjax) widget with a placeholder.
1516
* [#11044](http://dev.ckeditor.com/ticket/11044): Enhanced aria support for language plugin drop-down menu.
1617
* [#11075](http://dev.ckeditor.com/ticket/11075): With drop-down menubutton focused, pressing down arrow key will now open menu and focus its first option.
1718
* [#11165](http://dev.ckeditor.com/ticket/11165): Fixed: The filebrowser plugin cannot be removed from the editor.

plugins/mathjax/dialogs/mathjax.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,17 @@ CKEDITOR.dialog.add( 'mathjax', function( editor ) {
2626
onLoad: function( widget ) {
2727
var that = this;
2828

29-
this.getInputElement().on( 'keyup', function() {
30-
// Add \( and \) for preview.
31-
preview.setValue( '\\(' + that.getInputElement().getValue() + '\\)' );
32-
} );
29+
if ( !( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) ) {
30+
this.getInputElement().on( 'keyup', function() {
31+
// Add \( and \) for preview.
32+
preview.setValue( '\\(' + that.getInputElement().getValue() + '\\)' );
33+
} );
34+
}
3335
},
3436

3537
setup: function( widget ) {
3638
// Remove \( and \).
37-
var math = widget.data.math,
38-
begin = math.indexOf( '\\(' ) + 2,
39-
end = math.lastIndexOf( '\\)' );
40-
this.setValue( math.substring( begin, end ) );
39+
this.setValue( CKEDITOR.plugins.mathjax.trim( widget.data.math ) );
4140
},
4241

4342
commit: function( widget ) {
@@ -55,7 +54,7 @@ CKEDITOR.dialog.add( 'mathjax', function( editor ) {
5554
'</a>' +
5655
'</div>'
5756
},
58-
{
57+
( !( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) ) && {
5958
id: 'preview',
6059
type: 'html',
6160
html:

0 commit comments

Comments
 (0)