欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

drupal 上传文件 An error occurred while attempting to process Wysiwyg module has no information about field "" 有大用 有大大用

Ajax error: Wysiwyg module has no information about field ""

Ueditor remove textarea id attribute cause wysiwyg module error on detach action.
error info

CommentFileSizeAuthor
#2ueditor_wysiwyg_ajax_error-2859069-2.patch862 bytesipumpkin

QQ截图20170309151323.jpg5.15 KBipumpkin




QQ截图20170309151323.jpg

 image.png



ueditor_wysiwyg_ajax_error-2859069-2.patch 的内容如下 

https://www.drupal.org/files/issues/ueditor_wysiwyg_ajax_error-2859069-2.patch   对着它进行修改就可以了

diff --git a/wysiwyg.js b/wysiwyg.js
index 4e566db..290b8a7 100644
--- a/wysiwyg.js
+++ b/wysiwyg.js
@@ -194,7 +194,11 @@ Drupal.behaviors.attachWysiwyg = {
       }
       var form = this;
       $('.wysiwyg:input', this).each(function () {
-        Drupal.wysiwygDetach(form, this.id, 'serialize');
+        var id = this.id;
+        if(!id){
+          id = $(this).prev().attr('id');
+        }
+        Drupal.wysiwygDetach(form, id, 'serialize');
       });
     });
   },
@@ -212,7 +216,11 @@ Drupal.behaviors.attachWysiwyg = {
       wysiwygs = $('.wysiwyg:input', context).removeOnce('wysiwyg');
     }
     wysiwygs.each(function () {
-      Drupal.wysiwygDetach(context, this.id, trigger);
+      var id = this.id;
+      if(!id){
+        id = $(this).prev().attr('id');
+      }
+      Drupal.wysiwygDetach(context, id, trigger);
     });
   }
 };




下面的可以不看

和entityreference_view_widget模块有冲突

和entityreference_view_widget模块有冲突,在node/add/article页面,无法弹出此模块的窗口,错误提示:An error occurred while attempting to process /system/ajax: Wysiwyg module has no information about field ""
禁用ueditor模块后恢复正常。


Comments

   
360032368@qq.com’s picture        

按照https://www.drupal.org/node/2286333修改文件后,此问题也同时解决。


来自 https://www.drupal.org/project/ueditor/issues/2446025


和百度编辑器 ueditor 有冲突吧 

switch the text format, the editor disappears

This is a known Issues, When you switch the format, the editor disappears, I have to find a solution, maybe not the best solution, but now it is valid

if you already download the ueditor libraries fromhttp://ueditor.baidu.com/website/index.html                        , then you should be can find this file:
                       sites/all/libraries/ueditor/ueditor.all.js

open it with any text editor and remove this code (about line 29243 ~ 29246):                        

.....if(holder.id){newDiv.id=holder.id;domUtils.removeAttributes(holder,'id');}.....
                   

save it!                        

Done!

CommentFileSizeAuthor

20140614233600.jpg                                29.02 KBzhiqiang.qiu                                
Members fund testing for the Drupal project.Drupal AssociationLearn more    


Comments

   

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

   
silas.xie’s picture        

thanks , it works, but, it is line 29241 to 29244

   
zhiqiang.qiu’s picture        

Issue summary:View changes                                    

修改最新版的库文件行号


来自 https://www.drupal.org/node/2286333

普通分类: