[solved] Using FCKeditor or tinyMCE with comment input

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

[solved] Using FCKeditor or tinyMCE with comment input

Post by Dr.CSS »

is there anyway to use the FCKeditor or the tinyMCE editor as the comment input textarea..?. i called the FCKeditor it came up and i thought cool if i could just get rid of a few of these buttons and just have smiley's and text options and maybe format this is going to be awsome, but to no avail,,, input text formated added smileys' looking good hit submit ....

Error:

    * Enter A Comment (isn't that the point?)

tinyMCE won't even show up to the party hhmmm.... so back to plain old textarea input...  :(
just thought i would ask

  mark
Last edited by Anonymous on Sat Feb 02, 2008 5:42 pm, edited 1 time in total.
cyberman

Re: Using FCKeditor or tinyMCE with comment input

Post by cyberman »

Hi Mark,

found your posting today - it works for me with Comments 1.6 and FCK ;).

You have only to change in action.addcomment.php line 190 from

Code: Select all

	$this->smarty->assign_by_ref('inputcomment', 	$this->CreateTextArea(false, $id, $content, 'content', $id));
to

Code: Select all

	$this->smarty->assign_by_ref('inputcomment', 	$this->CreateTextArea(true, $id, $content, 'content', $id));
FCK must be your prefered WYSIWYG.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Using FCKeditor or tinyMCE with comment input

Post by Dr.CSS »

Thanks but I got tiny to come to the party ;) and it has smilies.

I've switched over to tinyMCE as default in my 1.0 b5 install, FCKeditor was having a hard time with more than one content edit window, was making Ff spin like it was busy even tho I could still edit the content and apply it and see the changes.
User avatar
robsta
Forum Members
Forum Members
Posts: 131
Joined: Thu Oct 20, 2005 11:39 pm

Re: Using FCKeditor or tinyMCE with comment input

Post by robsta »

Okay I got this working nicely in Comments 1.8.2 with CMSMS 1.2.3

the file is action.default.php line number is now 280

Code: Select all

$this->smarty->assign_by_ref('inputcomment', 	$this->CreateTextArea(true, $id, $content, 'content', $id, '', '', '', 65));
same as above just change the CreateTextArea to true instead of false
Post Reply

Return to “CMSMS Core”