Page 1 of 1

TinyMCE office2007 blue/black..

Posted: 02 Oct 2009, 16:54
by betteryouthanme
Hello there,

Is it possible to change the TinyMCE standard skin (grey look) to office2007 blue/black/silver skin?
In Joomla TinyMCE settings I can choose between them but it dosnt effect the guestbook..

Thanks.

Re: TinyMCE office2007 blue/black..

Posted: 02 Oct 2009, 17:12
by betteryouthanme
Found the solution 1min after posting :x sry

Open phocaguestbook.php ( components -> com_phocaguestbook -> helpers )
and search for this function

Code: Select all

	function displaySimpleTinyMCEJS()
	{		
		$js =	'<script type="text/javascript">' . "\n";
		$js .= 	 'tinyMCE.init({'. "\n"
					.'mode : "textareas",'. "\n"
					.'theme : "advanced",'. "\n"
					.'skin : "o2k7",'. "\n"
					.'language : "en",'. "\n"
					.'plugins : "emotions",'. "\n"
					.'editor_selector : "mceEditor",'. "\n"					
					.'theme_advanced_buttons1 : "bold, italic, underline, separator, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, undo, redo, link, unlink, separator, emotions",'. "\n"
					.'theme_advanced_buttons2 : "",'. "\n"
					.'theme_advanced_buttons3 : "",'. "\n"
					.'theme_advanced_toolbar_location : "top",'. "\n"
					.'theme_advanced_toolbar_align : "left",'. "\n"
					.'theme_advanced_path_location : "bottom",'. "\n"
					.'extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});' . "\n";
		$js .=	'</script>';
		return $js;

	}
now just put following into it somewhere between mode, theme, theme, skin, language,...

Code: Select all

					.'skin : "o2k7",'. "\n"
If you need black or silver editor, add
skin_variant : "black",
or
skin_variant : "silver",
under
.'skin : "o2k7",'. "\n"
eg:

Code: Select all

					.'skin : "o2k7",'. "\n"
					.'skin_variant : "black",'. "\n"

Re: TinyMCE office2007 blue/black..

Posted: 05 Oct 2009, 16:40
by Jan
Ok, thank you for this information.

Jan