gpt4 book ai didi

jquery - 如何禁用 TinyMCE 文本区域

转载 作者:行者123 更新时间:2023-12-03 22:38:54 25 4
gpt4 key购买 nike

我已尝试以下所有方法:

$(#"tbxNote").attr("disabled", "disabled"); ////doesn't work
$(#"tbxNote").attr("disabled", "true"); //doesn't work either :)

tinyMCE.init( mode: "none" ); //throws an error

这就是我加载 TinyMCE 的方式:

//load tinymce plugin
$('#tbxNote').tinymce({
// Location of TinyMCE script
script_url: '/common/scripts/tiny_mce/tiny_mce.js',

// General options
theme: "advanced",

// Theme options
theme_advanced_buttons1: "link,unlink",
theme_advanced_buttons2: "", //important
theme_advanced_buttons3: "", //important
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: false,

setup: function (ed) {
ed.onClick.add(function (ed) {
//ed.windowManager.alert('User clicked the editor.');
});
}
});

最佳答案

readonly : true 添加到您的参数中。

关于jquery - 如何禁用 TinyMCE 文本区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3455525/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com