elrte不适用于Internet Explorer 11(IE11) [英] elrte doesn't work with Internet Explorer 11 (IE11)

查看:147
本文介绍了elrte不适用于Internet Explorer 11(IE11)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

elrte不适用于Internet Explorer 11(IE11)

由Hank Valery在18天前添加

Microsoft正在使用Windows Update部署IE11,因此我尝试了它如何与elrte一起工作.不幸的是,这里存在严重的问题.

开始键入时,文本不会包含在光标位置.它出现在编辑器的开头,但似乎不在格式化主体内.单击编辑器"后,您将识别出键入的文本不可用.

是否有一种解决方案可以让IE与Elrte再次合作? IE8-IE10中不存在此问题.

谢谢

解决方案

很难确定.我一点都不了解elRTC软件.

不过,在源代码揭示了它使用浏览器检测来切换某些功能在不同浏览器中的工作方式-尤其是,代码中有许多对$.browser.msie的引用,这是jQuery浏览器检测属性.

这是有问题的,原因有两个:

  • 首先,不推荐使用jQuery浏览器检测功能:默认情况下,最新版本的jQuery甚至都不包含$.browser属性.可以使用jQuery迁移库将其找回来,但这并不理想;不推荐使用它是有原因的,因此从长远来看,依靠它并不是真正的好习惯.当新的浏览器版本发布时,elRTE依赖于jQuery中已弃用的功能这一事实可能会给您的代码带来其他问题,并且也将使您更难升级到新的jQuery版本.

  • 其次,IE11进行了许多更改,这些更改破坏了许多现有的浏览器检测脚本.我不确定$.browser.msie,但是上面的段落意味着您可能使用的是IE11存在之前发布的jQuery版本,这意味着没有办法知道这些更改.

我的建议是执行以下操作:

  1. 在github问题跟踪器上为erLTE发布票证,以向他们报告问题.还要检查其他可能已经报告过的票证. github代码中可能还存在尚未将其发布为正式版本的更新,可以解决该问题.

  2. 获取最新版本的jQuery (在撰写本文时为v1.10.2),以及 jQuery.migrate库.使用这些版本而不是您当前使用的任何版本.如果您很幸运,则可能已更新了最新版本的迁移库以正确检测IE11,并且如果您真的很幸运,则可能无需进一步处理即可解决此问题.我不能保证,但是值得一试.

  3. 您可能要考虑的另一个选项是切换到其他工具. CKEditor和TinyMCE似乎是目前此类工具中最受欢迎的工具,但是还有很多其他的编辑器可用.您可能想尝试一下.

elrte doesn't work with Internet Explorer 11 (IE11)

Added by Hank Valery 18 days ago

Hi,

Microsoft is deploying IE11 with Windows Updates, so I tried out how it works with elrte. Unfortunately there are serious problems.

When you start typing, the text won't include on cursors position. It appears at the beginning of the editor, but seems to be outside the formatting body. After clicking "editor" you will recognize the typed in text isn't available.

Is there a solution to get IE work with elrte again? This problem didn't exist in IE8-IE10.

Thank you

解决方案

It's hard to be certain; I don't know the elRTC software at all.

However a very quick look around in the source code reveals that it uses browser detection to switch how certain features work in different browsers -- in particular, there are a number of references in the code to $.browser.msie, which is the jQuery browser detection property.

This is problematic for two reasons:

  • Firstly, the jQuery browser detection feature is deprecated: recent versions of jQuery don't even include the $.browser property by default. It is possible to get it back by using the jQuery migrate library, but not ideal; it's deprecated for a reason, so relying it isn't really good practice in the long term. The fact that elRTE is relying on deprecated features in jQuery may cause other problems for your code as new browser versions are released, and will also make it harder for you to upgrade to a newer jQuery version.

  • Secondly, IE11 made a number of changes which break a lot of existing browser detection scripts. I'm not sure about $.browser.msie, but the paragraph above means that it's likely that you're using a version of jQuery that was released before IE11 existed, which means there's not way it would know about those changes.

My advice is to do the following:

  1. Post a ticket on the github issue tracker for erLTE to report the issue to them. Also check for other tickets that might already have reported it. There may also be updates in the github code that haven't made it into a formal release yet which may address the issue.

  2. Grab the latest version of jQuery (v1.10.2 at the time of writing), and also the jQuery.migrate library. Use those instead of whatever version you're currently using. If you're lucky, the latest version of the migrate library may have been updated to correctly detect IE11, and if you're really lucky, that might resolve the issue without any further work. I can't guarantee it but it's worth a try.

  3. Another option you might want to consider is switching to an alternative tool. CKEditor and TinyMCE seem to be the most popular tools of this type at the moment, but there are quite a few other editors available. You might want to try them out.

这篇关于elrte不适用于Internet Explorer 11(IE11)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆