【问题标题】:How to remove insert image button from Yahoo Rich text editor如何从雅虎富文本编辑器中删除插入图像按钮
【发布时间】:2010-04-30 04:54:34
【问题描述】:

我正在使用一页一页的ThickBox 3.1。
现在,有一个问题,
我正在使用一种表单在按钮单击事件上打开厚框。
我在该表单上使用雅虎文本编辑器。
在雅虎富文本编辑器中有一个图像插入链接.. 但我不知道为什么它没有打开。点击它。图像插入对话框未打开。
一切正常。
为什么打不开?
如果无论如何只能从文本编辑器中删除图像插入图标。

【问题讨论】:

    标签: javascript image thickbox yahoo-widgets


    【解决方案1】:

    可能,如果您通过删除 insertimage 来更改按钮块上的设置

    来自

    buttons: [ 
         { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true }, 
         { type: 'push', label: 'Insert Image', value: 'insertimage' } 
    ] 
    

    buttons: [ 
         { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true }
    ] 
    

    参考:http://developer.yahoo.com/yui/examples/editor/toolbar_editor.html

    【讨论】:

    • var myEditor = new YAHOO.widget.Editor('msgpost', { height: '300px', width: '518px', dompath: true, //开启底部动画: true //动画编辑器窗口的打开、关闭和移动 }); myEditor.render(); //我是用这种风格渲染的。所以你能告诉我..只删除 insertimage 按钮。感谢您的重播。
    猜你喜欢
    • 2022-07-04
    • 1970-01-01
    • 2011-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多