Tinymce Editor 光标是指针而不是文本
Tiny MCE Editor cursor is pointer not text
在我的 Tiny MCE Editor 中,光标悬停时是指针,应该在文本中。当鼠标悬停在 MCE 编辑器上时,我没有得到任何方法或方式将光标更改为文本。编辑器的文档也没有给出任何想法。
在tinymce init函数中增加一个选项
setup : function(ed) {
ed.on("click", function() {
ed.focus();
});
}
现在您的代码会像这样
tinymce.init({
selector: "textarea",
theme: "modern",
width: '100%',
plugins: ["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste textcolor"
],
toolbar: " bold italic underline | alignleft aligncenter",
setup : function(ed) {
ed.on("click", function() {
ed.focus();
});
}
});
你好,光标在悬停在 tinymce 的 body 元素上时会发生变化。所以我在初始化时想出了这个选项:
content_style: "body { min-height: 225px;}"
根据您的 tinymce window 高度更改最小高度的大小。
在我的 Tiny MCE Editor 中,光标悬停时是指针,应该在文本中。当鼠标悬停在 MCE 编辑器上时,我没有得到任何方法或方式将光标更改为文本。编辑器的文档也没有给出任何想法。
在tinymce init函数中增加一个选项
setup : function(ed) {
ed.on("click", function() {
ed.focus();
});
}
现在您的代码会像这样
tinymce.init({
selector: "textarea",
theme: "modern",
width: '100%',
plugins: ["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste textcolor"
],
toolbar: " bold italic underline | alignleft aligncenter",
setup : function(ed) {
ed.on("click", function() {
ed.focus();
});
}
});
你好,光标在悬停在 tinymce 的 body 元素上时会发生变化。所以我在初始化时想出了这个选项:
content_style: "body { min-height: 225px;}"
根据您的 tinymce window 高度更改最小高度的大小。