sp.ui.rte.debug.js moveToElementText 参数无效
2012-10-24 19:26
375 查看
Invalid argument on Line 7353 in sp.ui.rte.debug.js
This is still a problem after the December 2010 CU.
*** PROCEED WITH THE FOLLOWING AT YOUR OWN RISK ***
If you need an interim fix then we need to fix the offending JavaScript, and doing this breaks mySharePoint Golden Rule No. 6 – Never Modify the OOB files. However if you need to do it then you might do something like this:
Navigate to your LAYOUTS folder, usually at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
Make a copy of SP.UI.Rte.debug.js and SP.UI.Rte.js to restore for later when this is fixed in an update. (Restore your vanilla copy before running any subsequent CU’s or Service Packs)
Edit the SP.UI.Rte.debug.js around line 7353 …. from this:
To look like this:
Save your changes and copy SP.UI.Rte.debug.js over the top of SP.UI.Rte.js – remembering that you have backups of both of these files to restore before applying future updates.
This is still a problem after the December 2010 CU.
*** PROCEED WITH THE FOLLOWING AT YOUR OWN RISK ***
If you need an interim fix then we need to fix the offending JavaScript, and doing this breaks mySharePoint Golden Rule No. 6 – Never Modify the OOB files. However if you need to do it then you might do something like this:
Navigate to your LAYOUTS folder, usually at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
Make a copy of SP.UI.Rte.debug.js and SP.UI.Rte.js to restore for later when this is fixed in an update. (Restore your vanilla copy before running any subsequent CU’s or Service Packs)
Edit the SP.UI.Rte.debug.js around line 7353 …. from this:
parentElement: function() {ULSkay:; var $v_0 = this.$8; if ($v_0.parentElement) { var $v_2 = $v_0.parentElement(); var $v_3 = RTE.DomHelper.createRange(window.document); if ($v_2) { $v_3.moveToElementText($v_2); } while ($v_2 && !$v_3.inRange($v_0)) { $v_2 = $v_2.parentNode; try { $v_3.moveToElementText($v_2); } catch ($$e_3_0) { } }
To look like this:
parentElement: function () { ULSkay: ; var $v_0 = this.$8; if ($v_0.parentElement) { var $v_2 = $v_0.parentElement(); var $v_3 = RTE.DomHelper.createRange(window.document); if ($v_2) { try { $v_3.moveToElementText($v_2); } catch (gonk) { //Do Nothing - SharePoint Bug. } } while ($v_2 && !$v_3.inRange($v_0)) { $v_2 = $v_2.parentNode; try { $v_3.moveToElementText($v_2); } catch ($$e_3_0) { }
Save your changes and copy SP.UI.Rte.debug.js over the top of SP.UI.Rte.js – remembering that you have backups of both of these files to restore before applying future updates.
相关文章推荐
- Invalid argument on Line 7353 in sp.ui.rte.debug.js
- sp.ui.rte.js参数错误
- 记一次elementUI Icon 加载无效的问题。并且提示错误 Failed to decode downloaded font:
- 屏蔽:粘贴到KindEditor里,IE下弹出框报”对象不支持moveToElementText属性或方法“错误的提示
- SharePoint 2013 Rest and SP.js Copyto and Moveto (Rest 和SP.js 基本用法之 复制和移动文件)
- nightwatchjs --Expect element to not include text
- JS. How to replace html element with another element/text, represented in string?
- Vue.js UI框架 - element
- cocos2d::ui::TextField 调用setAttachWithIME和setDetachWithIME都无效
- [RxJS] Add debug method to Observable in TypeScript
- string.ToString(System.IFormatProvider)”最匹配的重载方法具有一些无效参数
- [Microsoft][ODBC SQL Server Driver][SQl Server]参数数据类型 text 对于 replace 函数的参数 1 无效。
- 原生js document.getElementById("XXX").disabled="false";无效
- (转载)如何用JS获取ASP.net中的textbox的值 js获不到text值,【asp.net getElementById用法】
- 函数 replace 的参数 1 的数据类型 text 无效。
- element-ui动态删除表单项后导致表单验证报错"please transfer a valid prop path to form item!"
- Vue.js UI框架 - element
- 浅谈使用element ui + vuedraggable + sortablejs实现多种版式布局及托拽(2)
- jquery-ui.min.js:5 Uncaught TypeError: b.nodeName.toLowerCase is not a function
- net MVC +Vue.js+Element UI 笔记