Designate the background color for the selected text.

In caret status, the background color for the text to be entered is designated.


Parameters:

NameTypeDescription
actionNameString'fill' text background color API
colorCodeStringhex color (ex; #000000)


Example:

editor.execCommand('fill', '#000000');