Commit ac194922 authored by Jakob Moser's avatar Jakob Moser
Browse files

Remove custom colors for TinyMCE

TinyMCE is no longer available as editor by default,
so those colors are unnecessary
parent 899ea5a4
Loading
Loading
Loading
Loading
+0 −52
Original line number Diff line number Diff line
@@ -23,56 +23,4 @@
		return $mime_types;
	}
	add_filter('upload_mimes', 'fscoli_mime_types', 1, 1);
	// - add custom colors
	add_filter('tiny_mce_before_init', 'fscoli_mce4_options');
	function fscoli_mce4_options( $init ) {
		$default_colours = '
			"000000", "Black",
			"993300", "Burnt orange",
			"333300", "Dark olive",
			"003300", "Dark green",
			"003366", "Dark azure",
			"000080", "Navy Blue",
			"333399", "Indigo",
			"333333", "Very dark gray",
			"800000", "Maroon",
			"FF6600", "Orange",
			"808000", "Olive",
			"008000", "Green",
			"008080", "Teal",
			"0000FF", "Blue",
			"666699", "Grayish blue",
			"808080", "Gray",
			"FF0000", "Red",
			"FF9900", "Amber",
			"99CC00", "Yellow green",
			"339966", "Sea green",
			"33CCCC", "Turquoise",
			"3366FF", "Royal blue",
			"800080", "Purple",
			"999999", "Medium gray",
			"FF00FF", "Magenta",
			"FFCC00", "Gold",
			"FFFF00", "Yellow",
			"00FF00", "Lime",
			"00FFFF", "Aqua",
			"00CCFF", "Sky blue",
			"993366", "Brown",
			"C0C0C0", "Silver",
			"FF99CC", "Pink",
			"FFCC99", "Peach",
			"FFFF99", "Light yellow",
			"CCFFCC", "Pale green",
			"CCFFFF", "Pale cyan",
			"99CCFF", "Light sky blue",
			"CC99FF", "Plum",
			"FFFFFF", "White"
			';
		$custom_colours = '
			"990000", "fscoli dark red"
			';
		$init['textcolor_map'] = '['.$default_colours.','.$custom_colours.']';
		$init['textcolor_rows'] = 6;
		return $init;
	}
?>
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version und Design); Jakob Moser (Code-Anpassungen und Responsiveness)
 * Author URI: https://personads.me/
 *
 * Version: 1.00-snapshot-42
 * Version: 1.00-snapshot-43
 * 
 * License: GNU General Public License v3.0
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html