Welcome Guest, Not a member yet? Register   Sign In
Formatting Problem with Tinymce and MySql
#1

[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 ?
#2

[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
#3

[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!
#4

[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!




Theme © iAndrew 2016 - Forum software by © MyBB