Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP: Tinymce "styling" not saving changes
    primarykey
    data
    text
    <p>I am having a problem with Tinymce which has only started occuring recently. I have a PHP page with Tinymce on it. When I click the submit button to save the changes to TinyMCE, it does NOT save the styling - font size, bold, images etc, but only saves the text. It inserts it into my SQL database.</p> <p>I feel it is something to do with the p tag, because before the problem occured, all submitted pieces of text were wrapped inside p tags, whereas they aren't now.</p> <p>I have no idea what is wrong though! The text is not inserting using something like filter(), so no PHP strings are making the errors.</p> <p>Tinymce header:</p> <pre><code> &lt;script type="text/javascript"&gt; tinyMCE.init({ theme : "advanced", mode : "exact", plugins : "emotions,spellchecker,fullscreen", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft, justifycenter,justifyright,justifyfull,separator,fontsizeselect,fontselect,styleselect,forecolor,backcolor,image, separator,blockquote,link,emotions,spellchecker,fullscreen", theme_advanced_buttons3_add : "fullpage", editor_selector :"mceEditor", elements : "tinyMCE", skin : "o2k7", skin_variant : "silver", }); &lt;/script&gt; </code></pre> <p>The textbox with Tinymce attached to it:</p> <pre><code>&lt;td&gt;&lt;textarea name="signature" align="left" style="width:760px;height:50px;" id="tinyMCE"&gt;&lt;?php echo $lolassoc['signature']; ?&gt;&lt;/textarea&gt;&lt;/td&gt; </code></pre> <p>The PHP query which inserts into the database (the post['signature'] part uses tinymce.</p> <pre><code>mysql_query("UPDATE users SET block_newfriends='$_POST[block_newfriends]', details='".clean($_POST['details'])."', accept_trading='clean($_POST[accept_trading])', hide_online='clean($_POST[hide_online])', signature='".$_POST['signature']."' WHERE id = '" . USER_ID . "'"); header("Location: ".WWW."/identity/settings"); </code></pre> <p>If you need more clarification, please let me know. Thanks! :)</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.
    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