Just wanted to know if anyone is interested in them before I go to the trouble. I have a graphic artist for a client who wanted a lot of custom stuff.
Advanced Color Picker
These would be very useful. A few of these are on the Redactor plugin todo list, so they would be very welcome additions.
What does your Advanced Color Picker plugin do?
I'm going to try and get these packaged up this weekend. The only one that will take more than commenting and clean up is the fonts. Right now it is lazy loading as needed like 30 different fonts from google web fonts. I need to make that something that is easier to edit. Right now you need to look in like 2 or 3 locations to update it with more fonts.
Some of them like the font sizer just shows the font size in the menu but it also has a popup that lets you type a number directly in.
I might recommend using the Spectrum color picker that comes with concrete5. It would be one less asset to require. I can provide you with the code to use it in a plugin.
Currently the Font Color plugin that comes with concrete5 (font colors and text background colors) uses colors that are hard coded in the plugin itself. This makes the plugin very inflexible. If your Advanced Color Picker handled those two areas, that would make it an excellent replacement.
Your Font Size plugin will be an excellent replacement for the default Font Size plugin that comes with concrete5 (it has hard coded font sizes and no option to enter a custom size).
- in the modal
<input type="text" id="ccm-colorpicker-test">
- after this.modal.show();
Get a color picker value
var hex = $('#preferredHex').spectrum('get');
- hex is a tinycolor object
- tinycolor objects have an assortment of methods for returning colors in different formats
"rgb(255, 69, 0)"
Set a color picker value
- the second argument is a string with the color
I uploaded all the plugins except the font. That one needs a little work, too much is hard coded.