不能设置tinymce textarea的高度。根据documentation,它应该与原始替换的textarea的高度相同,在我的情况下为500px。如何设置tinymce textarea的高度
tinymce.init({
selector: "#texedit",
body_class: 'tiny01',
content_css: "content.css",
});
content.css
.tiny01{
background:lightgreen;
overflow-y:scroll;
height:500px; // deosn't work
}
#texedit{
height:500px; // deosn't work
}
的main.css
#texedit{
height:500px; // deosn't work
}
texedit
不是500像素,但有关100px的高度。
设置高度在'init'选项。 'tinymce.init({height:500})' – helllomatt