mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
TinyMCE: disable the tests for wptextpatterns
plugin in PhantomJS.
See #42009 git-svn-id: https://develop.svn.wordpress.org/trunk@41620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc4c7757c9
commit
35ebd35801
@ -2,7 +2,13 @@
|
||||
var editor,
|
||||
count = 0;
|
||||
|
||||
if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) {
|
||||
// Temporarily disadle these tests in PhantomJS.
|
||||
// Seems editor.selection.getRng() in mceType() fails there, but works properly in the browsers.
|
||||
if ( /PhantomJS/.test( navigator.userAgent ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user