WYSIWYG instead of textarea for front end users

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
liudaz

WYSIWYG instead of textarea for front end users

Post by liudaz »

Hey,

I would like a person, that is self registering, to have a wysiwyg editor instead of textarea.

The easiest way of doing this, would be to change the "false" parameter to "true" in action.default.php:

Code: Select all

CreateTextArea(true, $id, $val, 'input_'.$reln['name'], '', '', '', '', 40, 5);
The TinyMCE editor loads and i can input the data. The only thing, that the formated data gets stored wrongly.
For example, in the databe at the "properties" table, the text gets stored as
" <p> something </p> " instead of something. In other words, html code gets converted into text. Maybe anybody could suggest or surmise, what could be wrong?

One more issue, that could be connected with this problem. If i decide to use regular textarea, no text formating is applied. For example, if i put linebreaks, the text gets stored into databse like one line (becomes unformated).

Any comments would be appresiated.

Liudas
faglork

Re: WYSIWYG instead of textarea for front end users

Post by faglork »

BUMP!

Can anyone shed a light on this? It would indeed be a very interesting feature.

Cheers,
Alex
sletts02
Forum Members
Forum Members
Posts: 19
Joined: Sun Sep 21, 2008 9:13 pm

Re: WYSIWYG instead of textarea for front end users

Post by sletts02 »

liudaz wrote: The TinyMCE editor loads and i can input the data. The only thing, that the formated data gets stored wrongly.
For example, in the databe at the "properties" table, the text gets stored as
" <p> something </p> " instead of something. In other words, html code gets converted into text. Maybe anybody could suggest or surmise, what could be wrong?
I too would like to know how I can fix this!
Locked

Return to “Modules/Add-Ons”