YUI 编辑器不给出输出

发布于 2024-08-13 12:14:44 字数 215 浏览 2 评论 0原文

我正在使用 Rails 的 YUI 编辑器插件( http://github.com/larsklevan/yui_editor )它渲染编辑器,但没有给我把它只是发送空白字段有什么方法可以手动 从编辑器中取出并将其保存到文本区域,使用 2.8.0 YUI

am using YUI editor plugins for rails( http://github.com/larsklevan/yui_editor) it render the editor but that is not giving me out put it just send blank field is there any way to manually
getting out put from editor and save that to textarea am using 2.8.0 YUI

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

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

发布评论

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

评论(1

以歌曲疗慰 2024-08-20 12:14:44

您是否添加了事件处理程序,例如“

YAHOO.util.Event.on('submit', 'click', function() {
  myEditor.saveHTML();
}

如果没有,请尝试使用它”。

如果您已添加此内容但仍然面临此问题,请尝试执行以下操作:

为您调用上述处理程序的按钮提供 id 属性。

我已经在 IE、FF 和 Chrome 上进行了测试。

Did you added the event handler like

YAHOO.util.Event.on('submit', 'click', function() {
  myEditor.saveHTML();
}

If not then try with it.

if you have added this and still you are facing this issue then try with following,

Give id attribute for the button on which you have called the above handler.

I have tested it on in IE, FF and chrome.

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