[记录]ns_error_unexpected firefox tinymce
Error 记录 firefox Unexpected NS
2023-09-11 14:20:10 时间
参考:
- Form not saving, NS_ERROR_UNEXPECTED
- Error: NS_ERROR_UNEXPECTED #794
- NS_ERROR_UNEXPECTED on Firefox when init again same id after Ajax reload #2671 link to:http://fiddle.tinymce.com/spfaab
Tinymce version: 4.0.18 (2014-02-27)
Jquery version:1.10.2
项目中,body是ajax加载进来的,即Form也是ajax load进来的。init和remove的方法我放到项目中header.php,
function initTinymce() { //tinymce.remove(); tinymce.init({ selector: "textarea", plugins: [ "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" }); } function removeTextarea() { tinymce.remove(); // <-- Remove all editors before removing the editors HTML }
在Submit方法中,再提交$.post();之前执行:
1 if($("#f_desc_news").length > 0){ 2 tinymce.EditorManager.triggerSave(); 3 // for (edId in tinyMCE.editors) 4 // tinyMCE.editors[edId].save(); 5 }
在ajax load的页面body-edit.php中,代码是:
1 <textarea id="f_desc_news" style="width: 300px; height: 150px; display: none;" name="f_desc_news"></textarea>
1 $(document).ready(function() { 2 3 if($("#f_desc_news").length > 0){ 4 //tinymce.execCommand('mceAddEditor',true,'#f_desc_news'); 5 initTinymce(); 6 }else{ 7 //tinymce.execCommand('mceRemoveEditor',true,'#f_desc_news'); 8 removeTextArea() 9 } 10 });
目前可行。
相关文章
- phoenix连接hbase数据库,创建二级索引报错:Error: org.apache.phoenix.exception.PhoenixIOException: Failed after attempts=36, exceptions: Tue Mar 06 10:32:02 CST 2018, null, java.net.SocketTimeoutException: callTimeou
- Error: Transaction check error: package managesoft-13.1.1-1.x86_64 does not verify: no digest
- LINK : fatal error LNK1158: 无法运行“rc.exe”解决办法 and Visual Studio 2017 下载安装
- ERROR: Process pool report error: Can‘t pickle
- E: Sub-process /usr/bin/dpkg returned an error code (1)解决办法
- Docker 在转发端口时的这个错误Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3306:tcp:172.17.0.2:3306: input/output error.
- 磁盘blk_update_request: I/O error
- Error while trying to retrieve text for error ORA-12705
- Docker服务启动报错:Job for docker.service failed because the control process exited with error code
- OpenGL ErrorC1189#error: gl.h included before glew.h
- Redis Cluster: (error) MOVED
- Vue报错 Error: error:0308010C:digital envelope routines::unsupported如何解决
- log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.lo .
- Cmake Error: your compiler "cl" was not Found .etc
- mybatis方法参数报错:Parameter 'xxx' not found - @requestParam 和@param的区别、desc关键字作为了字段名称查询问题、id取值错乱问题、ERROR:syntax error at or near "$8" in postgres
- 【vue踩坑记录】3、“Error in render: "TypeError: Cannot read property '0' of undefined"”渲染错误问题
- PostgreSQL Streaming Replication的FATAL ERROR
- Git 常见错误 之 error: src refspec xxx does not match any / error: failed to push some refs to 简单解决方法
- 【Hadoop】:配置出错error出现:Stop it first
- ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysql 或 manjaro 安装 mariadb
- Dynamics CRM 2011 2013-(An error occurred while opening mailbox xxx@xx.com Microsoft.Crm.Tools.Email.Providers.)
- eclipse ERROR: Unable to add module to the current project as it is not of ...
- [AWS] Solve Error: An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied
- Solve Error: "errcode": 48001, "errmsg": "api unauthorized hint"
- Solve Error: Unhandled exception at 0x00905a4d in xxx.exe: 0xC0000005: Access violation.
- 【AI学习笔记】Error: ffmpeg error (see stderr output for detail)
- Error response from daemon: oci runtime error: container_linux.go:235: starting container process …………
- ckplayer的Error #2033:Can not call javascript:ckstyle()解决