|
Re: Integrate HTML editor to Message Editing [message #31568 is a reply to message #31563] |
Mon, 08 May 2006 14:17 |
Ilia
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 #31617 is a reply to message #31563] |
Wed, 10 May 2006 07:52 |
shikha(dot)chopra(at)undp(dot)org
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>
|
|
|
Integrate tinyMCE into FUDForum [message #34484 is a reply to message #31617] |
Sun, 05 November 2006 11:03 |
puCK2001
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
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
|
|
|