Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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:


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 :

Change History (2)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: wontfix
Status: newclosed

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).

comment:2 Changed 11 years ago by Jakub Ś

One thing that perhaps will help is to remember textarea is not editor.

Contents of textarea are auto updated when form is submitted -!/api/CKEDITOR.config-cfg-autoUpdateElement.

If you use JS to get data from textarea this is what might be causing problems.

  1. Editor - something different has aligned paragraph
  2. textarea has its initial not alleged paragraph which most likely gets send.
  3. If you want to get editor data with JS please use!/api/CKEDITOR.editor-method-getData
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy