TinyMCE: wptextpattern: disable for IE 8 and lower
Props azaozz, iseulde. See #31441. git-svn-id: https://develop.svn.wordpress.org/trunk@32700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5bac5f7ccd
commit
b866b19a20
@ -39,12 +39,12 @@
|
||||
|
||||
rng = editor.selection.getRng();
|
||||
node = rng.startContainer;
|
||||
text = node.nodeValue;
|
||||
|
||||
if ( node.nodeType !== 3 ) {
|
||||
if ( ! node || node.nodeType !== 3 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
text = node.nodeValue;
|
||||
parent = editor.dom.getParent( node, 'p' );
|
||||
|
||||
if ( ! parent ) {
|
||||
|
@ -1,6 +1,10 @@
|
||||
( function( $, QUnit, tinymce, _type, setTimeout ) {
|
||||
var editor;
|
||||
|
||||
if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
function type() {
|
||||
var args = arguments;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user