从哪里可以下载 WMD 编辑器?

发布于 2024-12-03 07:02:49 字数 48 浏览 3 评论 0原文

我想将 WMD 编辑器添加到我的网站,但我在任何地方都找不到它的源代码。它在哪里?

I would like to add WMD editor to my website, but I do not find the source code of it anywhere. Where is it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

-黛色若梦 2024-12-10 07:02:49

wmd.js fils 中搜索函数 ma​​keSpritedButtonRow(第 913 行左右)。

假设您不想要粗体按钮,则注释包含“粗体按钮”的行。

示例:

        var boldButton = document.createElement("li");
        boldButton.className = "wmd-button";
        boldButton.id = "wmd-bold-button";
        boldButton.title = "Strong <strong> Ctrl+B";
        boldButton.XShift = "0px";
        boldButton.textOp = command.doBold;
        setupButton(boldButton, true);
        buttonRow.appendChild(boldButton);

注释掉上面所有的行,你的boldButton就消失了......

我已经下载了我的WMD 在这里

Search for the function makeSpritedButtonRow in wmd.js fils (around line 913).

Let us say if you do not want the boldButton then comment the lines containing the "boldButton".

Example:

        var boldButton = document.createElement("li");
        boldButton.className = "wmd-button";
        boldButton.id = "wmd-bold-button";
        boldButton.title = "Strong <strong> Ctrl+B";
        boldButton.XShift = "0px";
        boldButton.textOp = command.doBold;
        setupButton(boldButton, true);
        buttonRow.appendChild(boldButton);

comment all the above line and your boldButton is gone.......

I have downloaded my copy of WMD here.

只涨不跌 2024-12-10 07:02:49

原来的项目是; http://code.google.com/p/wmd/(已停止运行的主网站) .
这里还有Stack Overflow版本http://code.google.com/p/pagedown/

The original project is; http://code.google.com/p/wmd/ (dead main site).
There is also the Stack Overflow version here; http://code.google.com/p/pagedown/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文