Note that there are some explanatory texts on larger screens.

plurals
  1. POGet data from tinymce
    primarykey
    data
    text
    <p>Hi in a wizard on a confirmation tab i try to get the content from the tinymce editor. But it doesn't work. With normal textareas it works without any problems.</p> <p>Example normal Textarea: </p> <pre><code>&lt;div class="control-group"&gt; &lt;label class="control-label"&gt;MyValue&lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt; &lt;div class="controls"&gt; &lt;textarea class="span12 m-wrap" style="max-width:100%;" name="MyValue" rows="7"&gt;&lt;/textarea&gt; &lt;/div&gt;&lt;/div&gt; </code></pre> <p>Code to show text from textarea on the confirmation page:</p> <pre><code>&lt;div class="control-group"&gt; &lt;label class="control-label"&gt;MyValue&lt;/label&gt; &lt;div class="controls"&gt; &lt;span class="text display-value" data-display="MyValue"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>My JavaScript code:</p> <pre><code> var displayConfirm = function() { $('.display-value', form).each(function(){ var input = $('[name="'+$(this).attr("data-display")+'"]', form); if (input.is(":text") || input.is("textarea")) { $(this).html(input.val()); } else if (input.is("select")) { $(this).html(input.find('option:selected').text()); } else if (input.is(":radio") &amp;&amp; input.is(":checked")) { $(this).html(input.attr("data-title")); } else if ($(this).attr("data-display") == 'htmlinhalt') { $(this).html($('[name="htmlinhalt"]', form).val()); } }); } </code></pre> <p>But why it doesn't work with a tinymce textarea? I think I must get the content directly from tinymce not from textarea, but how?</p>
    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.
 

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