富文本框无效 [英] rich textbox is not working
问题描述
i试图在我的网页上使用tinymce富文本框,但它不能正常工作!
这是asp页面
Hi,
i tried to use tinymce rich textbox in my webpage, but it is not working!
this is the asp page
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "advanced",
plugins: "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: false,
template_external_list_url: "js/template_list.js",
external_link_list_url: "js/link_list.js",
external_image_list_url: "js/image_list.js",
media_external_list_url: "js/media_list.js"
});
</script>
</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="content">
<table style="width:100%;">
<tr>
<td style="width:100px;">العنوان:</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" Width="253px" AutoCompleteType="Disabled"></asp:TextBox>
</td>
</tr>
<tr>
<td>الموضوع:</td>
<td rowspan="16">
<asp:Panel ID="Panel1" runat="server" BackColor="Silver" Direction="RightToLeft">
</asp:Panel>
<asp:TextBox ID="TextBox2" runat="server" AutoCompleteType="Disabled" Height="413px" TextMode="MultiLine" Width="781px"></asp:TextBox>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="width:100px;">القسم:</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" Height="18px" Width="145px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width:100px;"> </td>
<td>
<%-- <asp:TextBox ID="RichTextBox" runat="server" TextMode = "MultiLine"></asp:TextBox>
<asp:Button ID="btnSave" runat="server" Text="Save" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
<asp:Label ID="lblDisplay" runat="server" Text="" Visible = "false" ></asp:Label>
--%></td>
</tr>
<tr>
<td style="width:100px;">الفئة العمرية:</td>
<td>
<asp:DropDownList ID="DropDownList2" runat="server" Height="16px" Width="145px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width:100px;">العنوان:</td>
<td>
<asp:Button ID="Button1" runat="server" Text="اضافة" Width="145px" OnClick="Button1_Click" />
</td>
</tr>
<tr>
<td style="width:100px;"> </td>
<td>
<asp:Label ID="Label3" runat="server"></asp:Label>
</td>
</tr>
</table>
</div>
</asp:Content>
但这是我运行时出现的情况
http://im35.gulfup.com/NrGds.jpg [ ^ ]
出了什么问题?
but this what appear when i run it
http://im35.gulfup.com/NrGds.jpg[^]
what''s wrong ?
推荐答案
它是富文本框,它必须包含字体大小的控件,系列等等。
你没有添加RichTextBox
,但TextBox
,并将其命名为RichTextBox
。
it is rich textbox, it must contain controls for font size, family .. etc
You did not addRichTextBox
, butTextBox
and you name it asRichTextBox
.
<asp:textbox id="RichTextBox" runat="server" textmode="MultiLine" xmlns:asp="#unknown"></asp:textbox>
如果您想在您的网站上添加文本编辑器功能,请参考以下链接:
ASP.NET HTML编辑器控件 [ ^ ]
如何为ASP.NET AJAX创建HTML编辑器 [ ^ ]
ASP.NET的富文本编辑器[^]
Integrating TinyMCE Editor with ASP.NET< /a>[^]
2 0 excellent free rich text editors[^]
Rich Text Editor : The Official MS ASP.NET Forums[^]
If you want to add text editor functionality to your website, please, refer these links:
ASP.NET HTML Editor Control[^]
How to Create an HTML Editor for ASP.NET AJAX[^]
Rich Text Editor with ASP.NET[^]
Integrating TinyMCE Editor with ASP.NET[^]
20 excellent free rich text editors[^]
Rich Text Editor : The Official MS ASP.NET Forums[^]
这篇关于富文本框无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!