从TinyMCE / CKEditor获取wiki输出(用于Trac插件) [英] Getting wiki output from TinyMCE/CKEditor (for Trac plugin)

查看:219
本文介绍了从TinyMCE / CKEditor获取wiki输出(用于Trac插件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Trac的公司工作。问题是,没有人喜欢Trac的wiki编辑器,wysiwyg插件不如我们想要的那么好。

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.

为了解决这个问题,我们决定创建我们自己的Trac wysiwyg插件(希望我可以打开它。)

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

现在的计划是使用TinyMCE或CKEditor作为wysiwyg编辑器。问题是,他们的输出是html。理想情况下,我们希望他们的输出是原生trac-wiki代码。

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.

我的问题:有什么办法得到TinyMCE或CKEditor输出wiki代码而不是html?如果没有,什么是最好的方式使他们输出wiki? (我假设他们有一些插件接口,我可以使用这是更好的这种东西?)

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?

推荐答案

在进行自己的检查之前, TinyMce Wiki Plugin

Before making your own check TinyMce Wiki Plugin

这篇关于从TinyMCE / CKEditor获取wiki输出(用于Trac插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆