|
|
@ -32,9 +32,13 @@ BI.RichEditorColorChooser = BI.inherit(BI.RichEditorAction, { |
|
|
|
this.colorchooser.on(BI.ColorChooser.EVENT_CHANGE, function () { |
|
|
|
this.colorchooser.on(BI.ColorChooser.EVENT_CHANGE, function () { |
|
|
|
var value = this.getValue(); |
|
|
|
var value = this.getValue(); |
|
|
|
// 用span代替font
|
|
|
|
// 用span代替font
|
|
|
|
|
|
|
|
if(BI.isIE() && BI.getIEVersion() < 11) { |
|
|
|
|
|
|
|
self.doCommand(this.getValue()); |
|
|
|
|
|
|
|
} else { |
|
|
|
document.execCommand('styleWithCSS', null, true); |
|
|
|
document.execCommand('styleWithCSS', null, true); |
|
|
|
self.doCommand(this.getValue() || "inherit"); |
|
|
|
self.doCommand(this.getValue() || "inherit"); |
|
|
|
document.execCommand('styleWithCSS', null, false); |
|
|
|
document.execCommand('styleWithCSS', null, false); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|