TinyMCE office2007 blue/black..

Phoca Guestbook - creating guestbooks in Joomla! CMS
betteryouthanme
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Oct 2009, 16:48

TinyMCE office2007 blue/black..

Post 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.
betteryouthanme
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Oct 2009, 16:48

Re: TinyMCE office2007 blue/black..

Post 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"
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: TinyMCE office2007 blue/black..

Post by Jan »

Ok, thank you for this information.

Jan
If you find Phoca extensions useful, please support the project
Post Reply