Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 17, 2012 09:22 PM by Spontan23
Member
345 Points
314 Posts
May 17, 2012 09:22 PM|LINK
Hi,
I want to use TinyMce in textbox in gridview. How can I get a textbox in javascript? This is my code behind:
<script type="text/javascript" src="../TinyMce2/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode: "exact", elements: '<% = GridView1.TextBox21.ClientID %>', theme: "advanced", theme_advanced_buttons1: "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink", theme_advanced_buttons2: "", theme_advanced_buttons3: "", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_statusbar_location: "bottom", plugins: 'inlinepopups', theme_advanced_resizing: true, // Skin options skin: "o2k7", skin_variant: "silver", // Example content CSS (should be your site CSS) content_css: "css/example.css", // Drop lists for link/image/media/template dialogs 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", // Replace values for the template plugin template_replace_values: { username: "Some User", staffid: "991234" } }); </script>
Spontan23
Member
345 Points
314 Posts
tinymce textbox in gridview
May 17, 2012 09:22 PM|LINK
Hi,
I want to use TinyMce in textbox in gridview. How can I get a textbox in javascript? This is my code behind:
<script type="text/javascript" src="../TinyMce2/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode: "exact", elements: '<% = GridView1.TextBox21.ClientID %>', theme: "advanced", theme_advanced_buttons1: "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink", theme_advanced_buttons2: "", theme_advanced_buttons3: "", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_statusbar_location: "bottom", plugins: 'inlinepopups', theme_advanced_resizing: true, // Skin options skin: "o2k7", skin_variant: "silver", // Example content CSS (should be your site CSS) content_css: "css/example.css", // Drop lists for link/image/media/template dialogs 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", // Replace values for the template plugin template_replace_values: { username: "Some User", staffid: "991234" } }); </script>