simple colorpicker for ACE Editor
npm install ace-colorpicker
This project was created to implement a color picker. It implemented basic functions for color and implemented image filters.




``npm`
npm install ace-colorpicker
``
after npm install
`html
var editor = ace.edit("sample_text_area");
editor.setTheme("ace/theme/solarized_light");
editor.session.setMode("ace/mode/css", () => {
AceColorPicker.load(ace, editor, { ....options });
})
`
token with ace_color class name
* ace/mode/css
* ace/mode/less
* ace/mode/scss
Sets the delay time applied when the popup is closed. unit of ms
`js`
AceColorPicker.load(ace, editor, {
hideDelay: 1000
})
Sets the delay time for opening the color picker. The default is 300ms.
The colorpicker opens only when the mouse is in the same place during the showDelay time.
`js`
AceColorPicker.load(ace, editor, {
showDelay: 1000
})
``
git clone https://github.com/easylogic/ace-colorpicker
cd ace-colorpicker
npm install
npm run dev
open localhost:10001
```
npm run build