Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

This is very firs time i am using TinyMCE controls. As per my knowledge, tinyMCE text editor control have all the properties of text boxes. I am using text property to get the content of tinyMCE text editor. but in fact i am not getting the content.
can any body tell how can i get the content of tinyMCE text editor
and how it return if i add a an image to the editor?.

now i am trying this,

Body_EN = EnEmailBody.Text.trim


Here is my asp code;

XML
<script type="text/javascript" src="../scripts/tiny_mce/tiny_mce.js"></script>
                                    <script type="text/javascript" language="javascript">
                                        tinyMCE.init({
                                            // General options
                                            mode: "textareas",
                                            theme: "advanced",
                                            plugins:"safari,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,wordcount",


                                              // Theme options
                                                        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,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking, template,pagebreak",
                                                        theme_advanced_toolbar_location: "top",
                                                        theme_advanced_toolbar_align: "left",
                                                        theme_advanced_statusbar_location: "bottom",
                                                        theme_advanced_resizing: true,

                                                        // Example content CSS (should be your site CSS)
                                                        content_css: "css/content.css",

                                                        // Drop lists for link/image/media/template dialogs
                                                        template_external_list_url: "lists/template_list.js",
                                                        external_link_list_url: "lists/link_list.js",
                                                        external_image_list_url: "lists/image_list.js",
                                                        media_external_list_url: "lists/media_list.js",

                                                        // Replace values for the template plugin
                                                        template_replace_values: {
                                                            username: "Some User",
                                                            staffid: "991234"
                                                        }
                                        });
                                    </script>

                                    <asp:TextBox ID="EnEmailBody" runat="server" TextMode="MultiLine" Height="500px"
                                        Width="700px" ></asp:TextBox >
Posted
Updated 1-Nov-14 20:35pm
v2
Comments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900