FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Integrate HTML editor to Message Editing
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Integrate HTML editor to Message Editing [message #31563] Mon, 08 May 2006 05:07 Go to next message
shikha(dot)chopra(at)undp(dot)org is currently offline  shikha(dot)chopra(at)undp(dot)org   India
Messages: 11
Registered: May 2006
Karma: 0
Junior Member
When I click on Edit message, hard core HTML comes in atext box which could be edited. But I need to integrate HTML editor to it, since clents donot know HTML

How to do it. ANy suggestions
Re: Integrate HTML editor to Message Editing [message #31568 is a reply to message #31563] Mon, 08 May 2006 14:17 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
We don't recommend using HTML code in message and instead you really should be using FUDcode (BBCODE) tags. These, on edit are transformed into the simple tags.

FUDforum Core Developer
Re: Integrate HTML editor to Message Editing [message #31616 is a reply to message #31568] Wed, 10 May 2006 03:07 Go to previous messageGo to next message
shikha(dot)chopra(at)undp(dot)org is currently offline  shikha(dot)chopra(at)undp(dot)org   India
Messages: 11
Registered: May 2006
Karma: 0
Junior Member
But our mails are landing in FUD in HTML format. When I keep FUDCode On & edit the message, subsequently apply message changes, HTML gets displayed.Because in the TExtbox its HTML & not FUD since the mail is in HTML format. But if I keep HTML on I donot have any editor, Its always hard oce HTML which is getting displayed. I want that in Page,tml when it says forum_opt & 16 switch on FUD_icon

There could also be something for if HTML is on

I need to integrate HTML editor
Re: Integrate HTML editor to Message Editing [message #31617 is a reply to message #31563] Wed, 10 May 2006 07:52 Go to previous messageGo to next message
shikha(dot)chopra(at)undp(dot)org is currently offline  shikha(dot)chopra(at)undp(dot)org   India
Messages: 11
Registered: May 2006
Karma: 0
Junior Member
I got the answer

Go to Template Editor--> Edit--> post.tmpl ---> Post_page

In the Code add the javascript namely "tiny_mce.js"

Apply it to textareas
by including the following code too:

<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
width : "100%",
plugins : " table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,z oom,flash,searchreplace,print,contextmenu ",
theme_advanced_buttons1_add_before : "save,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor ",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : " a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|v space|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|n oshade],font[face|size|color|style],span[class|align|style] "

});
</script>


icon2.gif  Integrate tinyMCE into FUDForum [message #34484 is a reply to message #31617] Sun, 05 November 2006 11:03 Go to previous message
puCK2001 is currently offline  puCK2001   Italy
Messages: 3
Registered: April 2006
Karma: 0
Junior Member
wrong..
if you want to use tinyMCE you have to edit header.tmpl in that way..

1. Download TinyMCE and uncompress the tiny_mce into the forum path (the www root not the data root)

2. Template Editor > Edit > header.tmpl > header

3. Find the row
<script language="javascript" src="lib.js" type="text/javascript"></script>


4. Just after this inject the following code
<script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	theme : "advanced",
	mode : "textareas"
});
</script>


5. Save changes and it will work Very Happy

Have a nice day.

Edit: obviously you have then to set each forum to the HTML mode and not to the FUDCode mode, and - i guess - use imagemanager and emotemanager of the TinyMCE and no more the ones of FUDForum.

[Updated on: Sun, 05 November 2006 12:27]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Today's Visitors
Next Topic: "theme" Directory Won't Download
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 04:11:37 GMT 2024

Total time taken to generate the page: 0.02361 seconds