Fixes: #3464 - Change color picker to dynamic coloring from static CSS

This commit is contained in:
Daniel Sheppard
2019-09-24 09:39:06 -05:00
parent 6fdd35785e
commit 17ec9aa170
3 changed files with 4 additions and 116 deletions

View File

@@ -91,11 +91,8 @@ $(document).ready(function() {
// Assign color picker selection classes
function colorPickerClassCopy(data, container) {
if (data.element) {
// Remove any existing color-selection classes
$(container).attr('class', function(i, c) {
return c.replace(/(^|\s)color-selection-\S+/g, '');
});
$(container).addClass($(data.element).attr("class"));
// Swap the style
$(container).attr('style', $(data.element).attr("style"));
}
return data.text;
}