javascript editor java script text editor html wysiwyg editor dhtml tex editor editing made easy wysiwyg text editor web page memo field text editor

PRODUCTS

JavaScript Projects

PHP Projects

Javascript Tools

SUPPORT

Standard vs PRO

FAQ

Contacts

Site Map

CODETHAT

Downloads

Users Testimonials

Our Customers

STUDIO   GRID   TABLE   MENU   TREE   XPBAR   HINT   EDITOR   TAB   FORM   CALENDAR   SCROLLER   SHOPPINGCART   TREEPHP   PACKER

User Manual

Introduction    Configure editor look    Configure editor pallete

Data from the database    Data Saving    E-mail sending

Using icons    Editor Reference    Standard vs PRO

123Guide

Examples

Download

Themes

CODETHATEDITOR MANUAL

Customize Editor Pallete

Pallete is array of colors, that uses when user set text or background color

By default pallete is

var editorDef = {
	...
	pallete : [
		['FFFFFF', 'FFCCCC', 'FFCC99', 'FFFF99', 'FFFFCC',
		 '99FF99', '99FFFF', 'CCFFFF', 'CCCCFF', 'FFCCFF'],
		['CCCCCC', 'FF6666', 'FF9966', 'FFFF66', 'FFFF33',
		 '66FF99', '33FFFF', '66FFFF', '9999FF', 'FF99FF'],
		['C0C0C0', 'FF0000', 'FF9900', 'FFCC66', 'FFFF00',
		 '33FF33', '66CCCC', '33CCFF', '6666CC', 'CC66CC'],
		['999999', 'CC0000', 'FF6600', 'FFCC33', 'FFCC00',
		 '33CC00', '00CCCC', '3366FF', '6633FF', 'CC33CC'],
		['666666', '990000', 'CC6600', 'CC9933', '999900',
		 '009900', '339999', '3333FF', '6600CC', '993399'],
		['333333', '660000', '993300', '996633', '666600',
		 '006600', '336666', '000099', '333399', '663366'],
		['000000', '330000', '663300', '663333', '333300',
		 '003300', '003333', '000066', '330099', '330033']
	]
}

It consists 10 x 7 colors in table with 7 rows with 10 columns

You can use any number of colors you wish, just list them in array in such way

[
	['RGB_11', 'RGB_12', ..., 'RGB_1N'], //row1
	...
	['RGB_M1', 'RGB_M2', ..., 'RGB_MN']  //rowM
]

Each color parameter RGB_IJ defines color in RGB format that will be appear in row I and column J

For example FFFFFF - is white color, 000000 - is black color in RGB format.

You can customize pallete for each editor that you use at page.

Example - Editor Pallete and several editors at one page

You can see an example and complete code here - Editor Pallete and several editors at one page [popup]

Read more about CodeThatEditor >>

[ Home ]  [ Contacts ]  [ Site Map ]  [ News ]  [ Links ]  [ Downloads ]

[ Go Top ]

© CodeThat.com, 2003-2010
Design by XTLabs, Inc
Sponsored by Rocket Division Software, LTD.