Getting wiki output from TinyMCE/CKEditor (for Trac plugin)

二次信任 提交于 2019-12-24 10:35:46

问题


I'm working for a company that uses Trac. Problem is, no one likes Trac's wiki-editor, and the wysiwyg plugin isn't as good as we'd like.

To solve this, we've decided to create our own Trac wysiwyg plugin (hopefully, I'll be allowed to Opensource it.)

The plan right now is to use either TinyMCE or CKEditor as they wysiwyg editor. Problem is, their output is html. Ideally, we'd like their output to be native trac-wiki code.

My question: Is there any way of getting TinyMCE or CKEditor to output wiki code instead of html? If not, what's the best way to make them output wiki? (I assume they have some kind of plugin interface I can use? Which is better for this kind of thing?)

Meta-question: what do you think of my approach? Is there a better/faster way of getting what I want than integrating TinyMCE/CKEditor?


回答1:


Before making your own check TinyMce Wiki Plugin



来源:https://stackoverflow.com/questions/4509431/getting-wiki-output-from-tinymce-ckeditor-for-trac-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!