logan
  •  logan
  • 100% (Exalted)
  • YAF Leader Topic Starter
2009-03-05T03:09:14Z
From the download open the jscripts folder and copy the tiny_mce folder to your YAF editors folder.

create a tiny_mce_init.js file. this one is for the black theme
and add to the tiny_mce folder.copy the css from the ui-black.css file to the bottom of your YAF theme.
// O2k7 skin (black) 
tinyMCE.init({ 
// General options 
mode : "textareas", 
elements : "elm3", 
theme : "advanced", 
skin : "o2k7", 
skin_variant : "black", 
plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", 
 
// Theme options 
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", 
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", 
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", 
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", 
theme_advanced_toolbar_location : "top", 
theme_advanced_toolbar_align : "left", 
theme_advanced_statusbar_location : "bottom", 
theme_advanced_resizing : true, 
 
// Example content CSS (should be your site CSS) 
content_css : "css/example.css", 
 
// Drop lists for link/image/media/template dialogs 
template_external_list_url : "js/template_list.js", 
external_link_list_url : "js/link_list.js", 
external_image_list_url : "js/image_list.js", 
media_external_list_url : "js/media_list.js", 
 
// Replace values for the template plugin 
template_replace_values : { 
username : "Some User", 
staffid : "991234" 
} 
});
logan attached the following image(s):

test
Sponsor
smaaza
  •  smaaza
  • 67.4% (Friendly)
  • YAF Forumling
2009-03-05T14:01:19Z
<script type="text/javascript"src="../editors/tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">

in which file should i put the path above

and the dll just put this one in Bin folder
Moxiecode.TinyMCE.dll
and
ICSharpCode.SharpZipLib.dll

thanks a lot for ur time and for ur help.
logan
  •  logan
  • 100% (Exalted)
  • YAF Leader Topic Starter
2009-03-05T14:39:18Z
Havent set up the compressor but i'll assume the dll's go in the bin and you can add the code below to have yaf load the gzip script tags. Have not tested this. i'll have to download the compressor to test.
Look in appcode/yaf/forumeditor.cs

approx line 675

	protected override void Editor_Load( object sender, EventArgs e )
		{
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "tinymce", string.Format(@"<script language=""javascript"" type=""text/javascript"" src=""{0}""></script>", ResolveUrl("tiny_mce/tiny_mce.js")));
			// this init JS script has to be created by you...
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "tinymceinit", string.Format(@"<script language=""javascript"" type=""text/javascript"" src=""{0}""></script>", ResolveUrl("tiny_mce/tiny_mce_init.js")));
            
//add compressor script
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "tinymceinitgzip", string.Format(@"<script language=""javascript"" type=""text/javascript"" src=""{0}""></script>", ResolveUrl("tiny_mce/tiny_mce_gzip.js")));

            RegisterSmilieyScript();
		}

test
smaaza
  •  smaaza
  • 67.4% (Friendly)
  • YAF Forumling
2009-03-06T19:45:59Z
Finally Mr Logan its working :cheesy:

u are the main supporter to me in yaf forum

Thank u for ur help i know u spent a long time to help me thank u again

thanks a lot
herman_herman
2009-03-06T20:26:31Z
Good job.Thanks
YAF looks very cool with TinyMCE.
logan
  •  logan
  • 100% (Exalted)
  • YAF Leader Topic Starter
2009-03-06T22:13:31Z
Glad to see all is good :wink:

If you want to move the editor up to the top
right under the subject line.

pages/pmessage.acsx line 45
pages/postmessage.ascx line 179
add the valign="top"
<td id="EditorLine" class="post" runat="server" valign="top">
			<!-- editor goes here -->

test

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved