开发者

TinyMCE & CKEditor problem with AJAX & CSS

I'm programming a new free (free speach) web application for managing Medical (clinical) Labs via python, so I used WYSIWYG editors like: tinyMCE, CKEditor and nicEdit. there's no editor worked perfectly except nicEdit (with a trick).

TinyMCE: The First Problem is TinyMCE dosen't work when it's requested by jQuery AJAX. it works perfectly in the Main Page. but I've to call alert() function to activate it in the jQuery AJAX Requested page. I put two buttons for show and hide TinyMCE but they didn't work unless I call function alert().

The Second Problem is the tools icons is Scattered in the jQuery AJAX Requested Page. while开发者_如何学Go the tools in the main page is good. I don't know the main reason of this problem, AJAX or CSS? <Solved by removing padding from p, label, span in CSS stylesheet>

CKEditor: The first Problem: CKEditor dosen't work in the page requested by AJAX, neither I call alert() function or not, while it's working good in the main page. I tried to put a button call function CKEDITOR.replace('textarea_id'); but it didn't work. <Solved by Changing the CKEDITOR_BASEPATH>

The Second Problem of CKEditor is like the second problem of TinyMCE! <Solved by removing padding from p, label, span in CSS stylesheet>

How can I solve these problems, or can I use another free advanced WYSIWYG editors?


You are loading CKEditor in an unexpected way, so it's trying to load the rest of files from a wrong location.

You should uncomment the ckeditor.js like you have the other editors, or you can try to set a global variable CKEDITOR_BASEPATH before loading the ckeditor.js file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜