|
|
@ -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
|
|
|
|
document.execCommand('styleWithCSS', null, true); |
|
|
|
if(BI.isIE() && BI.getIEVersion() < 11) { |
|
|
|
self.doCommand(this.getValue() || "inherit"); |
|
|
|
self.doCommand(this.getValue()); |
|
|
|
document.execCommand('styleWithCSS', null, false); |
|
|
|
} else { |
|
|
|
|
|
|
|
document.execCommand('styleWithCSS', null, true); |
|
|
|
|
|
|
|
self.doCommand(this.getValue() || "inherit"); |
|
|
|
|
|
|
|
document.execCommand('styleWithCSS', null, false); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|