Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Textarea with tinymce

Locked
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Textarea with tinymce

Unread post by zazzium »

Hi, i have trouble with tinymce integration with textarea.

I added 'tinymce/jscripts/tiny_mce/tiny_mce.js'
and JavaScript

Code: Select all

tinyMCE.init({
		mode : "textareas",
		theme : "simple"
	});
The interface works, i can edit text (bold, italic, underline ..etc.),
but if i save, the textarea content is not saved (without tinymce the textarea works fine).
..any ideas?

Happy New Year to all
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Textarea with tinymce

Unread post by admin »

zazzium,

Sorry but we are not using tinyMCE any more we found a few problems with it

Steven
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: Textarea with tinymce

Unread post by zazzium »

I solved my problem simply by forcing the text to update after save

Code: Select all

$content = $_POST['mes_content'];
$sql = "UPDATE message SET mes_content = '$content'  WHERE mes_id = $recordID'";
nuRunQuery($sql);
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Textarea with tinymce

Unread post by admin »

Glad you could sort it out!
Locked