Note that there are some explanatory texts on larger screens.

plurals
  1. POtinyMCE replaces whole form not only textarea
    primarykey
    data
    text
    <p>I'm building a webapp (using java,spring,freemarker and tiles) with tinyMCE editor.</p> <p>I've added all files to classpath, everything is on the right place, tinyMCE editor is ALMOST correctly loaded... </p> <p>There are several fields in my form, text inputs, options, buttons, labels etc... but the problem occurs when I run this form. tinyMCE replaces the whole form, not just textarea and puts that form inside itself - into tinyMCE editor area. </p> <p>I am following basic installation found here <a href="http://www.tinymce.com/wiki.php/Installation" rel="nofollow">http://www.tinymce.com/wiki.php/Installation</a> My code is almost the same as here, has more elements in form. </p> <p>Is there any solution for this? Is this a standard behavior? </p> <p>I run it on FF 13.0.1 if it matters...</p> <p>my init code in form.ftl file is:</p> <pre><code>&lt;#import "../spring.ftl" as spring&gt; &lt;#assign form=JspTaglibs["http://www.springframework.org/tags/form"]&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="/resources/tinymce/tiny_mce.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; tinyMCE.init({ height : "480", mode : "textareas" }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="content"&gt; &lt;@form.form&gt; &lt;input type="text" id="title"/&gt;&lt;br&gt; &lt;input type="text" id="author"/&gt;&lt;br&gt; &lt;textarea id="content"&gt;&lt;/textarea&gt;&lt;br&gt; &lt;button type="submit"/&gt; &lt;button type="reset"/&gt; &lt;/@form.form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload