Adding tiny mce to forms
-
Hi everyone;
I have a custom page template to display a member’s only submission page. I am trying to add a tiny mce to the form using this in the head:<script language=”javascript” type=”text/javascript” src=”<?php echo get_bloginfo(‘url’) ?>/wp-includes/js/tinymce/tiny_mce.js”></script>
<script language=”javascript” type=”text/javascript”>
tinyMCE.init({
mode : “none”,
theme : “advanced”,
theme_advanced_buttons1 : “bold,italic,strikethrough|,|,bullist,numlist,outdent,indent,|,link,unlink,|,formatselect”,
theme_advanced_buttons2 : “”,
theme_advanced_buttons3 : “”,
language : “en”,
theme_advanced_toolbar_location : “top”,
remove_linebreaks:”1″,
paste_auto_cleanup_on_paste : true,
theme_advanced_blockformats : “Text=, Title 1=h3, Title 2=h4, Title 3=h5, Title 4=h6,Quote=blockquote”,
theme_advanced_toolbar_align : “left”});
tinyMCE.execCommand(“mceAddControl”, true, “content-area”);
</script>Am I way off course?
The topic ‘Adding tiny mce to forms’ is closed to new replies.