这是我的tinymce脚本.......一开始我想要这个用于asp.net我已经尝试了这么多时间也在其主站点上给出了一些脚本...甚至还有复制粘贴但它不工作下面的代码也复制粘贴,但没有工作,然后我想我尝试用简单的页面,但后来也没有工作...工作不意味着......它甚至没有显示我没有贪图可见性:隐藏;但是当我在浏览器中运行并看到没有文本区域时,我尝试检查元素时使用它,我看到 style =“visibility:hidden”我怎么不知道?以及如何运行这个..我想要功能齐全的tinymce javascript如果可以提供或者可以解决这个问题我也想要这个运行c#所以请帮助我.......如果你有更好的富文本编辑器免费让我知道......这可以给我更快的结果
<script src="tinymce/tinymce.min.js" type="text/javascript"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
]
});
</script>
这是我的身体代码
<form id="form1" runat="server">
hi hello
<textarea name="content" style="width: 100%" rows="10"></textarea>
</form>
答案 0 :(得分:0)
您能否验证页面中是否已加载css文件“tinymce / skins / lightgray / skin.min.css”?
答案 1 :(得分:0)
你还说要包括我试过的css文件并删除它然后也工作所以不需要css :)
<script src="tinymce/tinymce.min.js" type="text/javascript"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor "],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true
});
</script>