CodeIgniter Forums

Full Version: Formatting Problem with Tinymce and MySql
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]opel[/eluser]
I am using TinyMCE as the WYSISWG editor in my CMS system and I usually have no problems with it. However, I am having a problem when I use it on a text area of a form that then inserts into a "text" mysql.

The first issue is with tinymce that when I type into the text area the text does not wrap and continues to scroll horizontally, with a scroll bar at the bottom.

When this writes out the page the text does not wrap and contines to write outside divs. It is a weird error I have never come across before. Not sure if it is tinymce, my css or the DB ?

El Forum

[eluser]Colin Williams[/eluser]
There is a setting in TinyMCE that causes spaces " " to be inserted as non-breaking spaces " "

Refer to the TinyMCE documentation and/or support forums for a solution

El Forum

[eluser]brandobandido[/eluser]
Hi, I know this post is pretty old but I really need an answer to the problem I am having right now. I used "$this->db->escape_str($content)" to prevent SQL injection during DB insertion/processing. Now what happens after the process, it seems it adds "\n" when I use keyboard "Enter". The TinyMCE version I used is 3.9.2

Anyone? Help please? Many thanks!

El Forum

[eluser]brandobandido[/eluser]
[quote author="brandobandido" date="1300730938"]Hi, I know this post is pretty old but I really need an answer to the problem I am having right now. I used "$this->db->escape_str($content)" to prevent SQL injection during DB insertion/processing. Now what happens after the process, it seems it adds "\n" when I use keyboard "Enter". The TinyMCE version I used is 3.9.2

Anyone? Help please? Many thanks![/quote]

I'm an idiot! I never realized I don't need to use the escape_str when I use Active Record!

This is solved!