fckeditor

How do I modify serialized form data in jQuery?

寵の児 提交于 2019-11-26 12:22:40
问题 I am trying to submit my form in AJAX, so I have to serialize() the data. But I am using fckEditor and jQuery doesn\'t know how to deal with it, so after the serialization, I am trying to manually modify the value, but no luck so far... any ideas if(content_val!=\"\"){ var values = $(\"#frmblog\").serialize(); values.content = content_val; //content_val is the manually fetched data which I am trying to insert into the serialized content. alert(content_val); alert(values); } 回答1: serialize

CKEditor strips <i> Tag

江枫思渺然 提交于 2019-11-26 07:27:24
问题 I\'m trying to find a solution to avoid CKEditor, but also the older FCKeditor strips out any <i> tag from previously inserted content to the db. Case: I insert html content to the db, some content contain the <i> elements. I do this with the CKEditor. Everything works perfect and the content shows up on the webpage. But when i want to edit the previously inserted content, the <i> elements are missing. In my specific case i use: <i class=\"fa-icon-fullscreen fa-icon-xxlarge main-color\"></i>