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:
Ella Iseulde Van Dorpe 2015-06-06 22:37:13 +00:00
parent 5bac5f7ccd
commit b866b19a20
2 changed files with 6 additions and 2 deletions

View File

@ -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 ) {

View File

@ -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;