#9874 closed Bug (wontfix)
CKEditor / PHPMySqL : The HTML code is not correcltly transmitted to my Data Base
Reported by: | alex | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
I've got some issu regarding text align Center, Right Underlight text Text color
When I transmitted the textarea to my data base PHPMysqlAdmin the Html Code is missing in my data base PHPMysql as : <p style="text-align: center;">TEST<br></p>
Instead after the post in my data base I've got : <p>TEST</p>
I don't have any issu for the BOLD function : <p><strong>TEST</strong></p> That is correctly set after the POST to my data base
My Formular Code :
echo '<b>Indication</b> <input type="submit" name="bouton_indication" value="modifier" /> : <textarea id="indication_text" type="text" name="indication_text" >'.$rowindication?.'</textarea>'."<br />\n";
echo "<script type=\"text/javascript\"> CKEDITOR.replace( 'indication_text' ); </script>";
My SQL Submit :
$rq_maj= 'UPDATE points SET indication="'.$indication.'" WHERE points.title="'.$pt.'" ' ;
$resultat = mysql_query($rq_maj,$link);
Have you got an explaination.? Thanks for your help
Test page : http://alex69.dyndns.info/meridien/edit.php?point=P2
Change History (2)
comment:1 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
One thing that perhaps will help is to remember textarea is not editor.
Contents of textarea are auto updated when form is submitted - http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-autoUpdateElement.
If you use JS to get data from textarea this is what might be causing problems.
- Editor - something different has aligned paragraph
- textarea has its initial not alleged paragraph which most likely gets send.
- If you want to get editor data with JS please use http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData
Sorry but this is not editor issue. CKEditor is JavaScript and has nothing to do with transmitting data.
Please try to console.log in JavaScript and echo it in your app to see where it gets changed (stripped from attributes).