Modifying the Bold style of events being saved

Hello,

I am wondering is there a way to modify the Bold style of the text while an event is being saved without going into dhtmlxscheduler.js?

Currently it is done in the dataProcessor function… see below as an example I modified the updated and inserted styles by adding blue font and a border

Is there some hook or something similar where I can do the below without going into dhtmlscheduler.js?

function dataProcessor(e) {
return this.serverProcessor = e,
this.action_param = “!nativeeditor_status”,
this.object = null,
this.updatedRows = [],
this.autoUpdate = !0,
this.updateMode = “cell”,
this.tMode = “GET”,
this.post_delim = "
",
this._waitMode = 0,
this._in_progress = {},
this._invalid = {},
this.mandatoryFields = [],
this.messages = [],
this.styles = {
updated: “font-weight:bold;color:blue;border: solid black 2px”,
inserted: “font-weight:bold;color:blue;border: solid black 2px”,
deleted: “text-decoration : line-through;”,
invalid: “background-color:FFE0E0;”,
invalid_cell: “border-bottom:2px solid red;”,
error: “color:red;”,
clear: “font-weight:normal;text-decoration:none;”
}
this.enableUTFencoding(!0), dhtmlxEventable(this), this
}

You can do the same without changing anything in the source js file.

//common code of dataprocessor init var dp = new dataProcessor(url) dp.init(scheduler); //redefine styles dp.styles.updated = "font-weight:bold;color:blue;border: solid black 2px";

Thanks Stanislav it worked, I feel much better about not modifying the dhtmlx code itself and putting it in my own js :slight_smile: