views:

85

answers:

4

I want to used extended Textarea from tiny_mce_src. What am I doing wrong?

<%using(Ajax.BeginForm("CreateArticle","Home",new AjaxOptions(UpdateTargetId="content" }))
  {% <div><p><label for="body"></label> <%= Html.TextArea("body", new style="height:500px"})%></p>  <input type="submit value="Save"/></div> <%}%>
<script type="text/javascript" language="javascript">
  tinyMCE.init({mode:"textareas", thene:"advanced" }): 
</script>
A: 

tinyMCE.init need to be inside script tag:

<script type="text/javascript">
      tinyMCE.init({mode:"textareas",thene:"advanced"}); 
</script>
Mendy
A: 

Mendy, what you wrote in answer to the question was in the question. Question was cut.

Alex
I your question I see ':' instead of ';'. Make sure that you don't have any JavaScript errors.
Mendy
A: 

Perhaps it is the misspelling of theme?

<script type="text/javascript">
      tinyMCE.init({mode:"textareas",theme:"advanced"}); 
</script>
kylex
A: 

No. it's wrong, becouse Everything is already in question. But it doesn't work

Alex