And signature. Also hid labels for image and table buttons, so the toolbar doesn't wrap at 1024x768 in Enanium.
authorDan Fuhry <dan@enanocms.org>
Thu, 28 Oct 2010 03:03:23 -0400
changeset 3 1e6929f9978b
parent 2 307591683f3b
child 4 f8d8b3ef32e0
And signature. Also hid labels for image and table buttons, so the toolbar doesn't wrap at 1024x768 in Enanium.
GUIEditor.php
guieditor/editor.js
--- a/GUIEditor.php	Thu Oct 28 02:59:36 2010 -0400
+++ b/GUIEditor.php	Thu Oct 28 03:03:23 2010 -0400
@@ -81,6 +81,7 @@
 				btn_table: 'Table',
 				btn_ulist: 'Bulleted list',
 				btn_olist: 'Numbered list',
+				btn_signature: 'Signature',
 				
 				sample_heading: 'Heading',
 				sample_bold: 'Bold text',
--- a/guieditor/editor.js	Thu Oct 28 02:59:36 2010 -0400
+++ b/guieditor/editor.js	Thu Oct 28 03:03:23 2010 -0400
@@ -15,7 +15,7 @@
 	
 	toolbar += head.run();
 	
-	var buttons = ['heading', '|', 'bold*', 'italic*', 'underline*', '|', 'intlink', 'extlink', 'image', 'table', '|', 'ulist*', 'olist*'];
+	var buttons = ['heading', '|', 'bold*', 'italic*', 'underline*', '|', 'intlink', 'extlink', 'image*', 'table*', '|', 'ulist*', 'olist*', '|', 'signature'];
 	
 	// Button: Bold
 	var i;
@@ -300,7 +300,9 @@
 		case 'olist':
 			guied_replace_selection(textarea, $lang.get('guied_sample_olist'));
 			break;
-		
+		case 'signature':
+			guied_replace_selection(textarea, '~~~~');
+			break;
 	}
 }