Browse Source

The custom colors used by SMF

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
ee2ef23b81

+ 2 - 1
Themes/default/GenericControls.template.php

@@ -71,7 +71,8 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
 
 			$(document).ready(function() {
 				$("#' . $editor_id . '").sceditorBBCodePlugin({
-					style: "' . $settings['default_theme_url'] . '/css/jquery.sceditor.default.css"';
+					style: "' . $settings['default_theme_url'] . '/css/jquery.sceditor.default.css",
+					colors: "black,red,yellow,pink,green,orange,purple,blue,beige,brown,teal,navy,maroon,limegreen,white"';
 
 		// Show the smileys.
 		if ((!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) && !$editor_context['disable_smiley_box'] && $smileyContainer !== null)

+ 2 - 2
Themes/default/css/jquery.sceditor.css

@@ -115,8 +115,8 @@ div.sceditor-dropdown, div.sceditor-dropdown div {
 			.sceditor-color-option {
 				display: block;
 				border: 1px solid #fff;
-				height: 10px;
-				width: 10px;
+				height: 20px;
+				width: 100px;
 				overflow: hidden;
 			}
 			.sceditor-color-option:hover { border: 1px solid #333; }