Skip to content

Commit

Permalink
Refactoring: moved adding hash to color code to style definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this committed Dec 5, 2018
1 parent a6e8c19 commit 5b7d1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/colorbutton/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ CKEDITOR.plugins.add( 'colorbutton', {

editor.focus();
if ( color ) {
editor.applyStyle( new CKEDITOR.style( colorStyle, { color: color } ) );
editor.applyStyle( new CKEDITOR.style( colorStyle, { color: '#' + color } ) );
}
editor.fire( 'saveSnapshot' );
}
Expand Down Expand Up @@ -282,7 +282,7 @@ CKEDITOR.plugins.add( 'colorbutton', {
output.push( '<td>' +
'<a class="cke_colorbox" _cke_focus=1 hidefocus=true' +
' title="', colorLabel, '"' +
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'#', colorCode, '\',\'', type, '\'); return false;"' +
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'', colorCode, '\',\'', type, '\'); return false;"' +
' href="javascript:void(\'', colorCode, '\')"' +
' data-value="' + colorCode + '"' +
' role="option" aria-posinset="', ( i + 2 ), '" aria-setsize="', total, '">' +
Expand Down

0 comments on commit 5b7d1c1

Please sign in to comment.