WYSIWYG instead of textarea for front end users
Posted: Wed Jan 30, 2008 2:41 pm
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:
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
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);
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