Browse Source

Added support for short color codes

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 13 years ago
parent
commit
adc0932bd0
1 changed files with 15 additions and 0 deletions
  1. 15 0
      Themes/default/scripts/jquery.sceditor.bbcode.js

+ 15 - 0
Themes/default/scripts/jquery.sceditor.bbcode.js

@@ -886,6 +886,21 @@
 				return '<font color="' + attrs.defaultAttr + '">' + content + '</font>';
 			}
 		},
+		black: {
+			html: '<font color="black">{0}</font>'
+		},
+		blue: {
+			html: '<font color="blue">{0}</font>'
+		},
+		green: {
+			html: '<font color="green">{0}</font>'
+		},
+		red: {
+			html: '<font color="red">{0}</font>'
+		},
+		white: {
+			html: '<font color="white">{0}</font>'
+		},
 		// END_COMMAND
 
 		// START_COMMAND: Lists