Hi all,
did someone know if i can modify calendar-event-dialog.xul to add a default text to my event and task ?
thansk all
modify calendar-event-dialog to add default text
-
- Posts: 7
- Joined: February 23rd, 2018, 5:54 am
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: modify calendar-event-dialog to add default text
Are you talking about the following thread?Caeles (private message) wrote:i have seen an oldest post of your you have modify calendar-event-dialog.js
In version 52.X, .js dont exist but a .xul exist can i modify this one to add a default text ?
http://forums.mozillazine.org/viewtopic ... &t=2864153
Thunderbird 45
http://dxr.mozilla.org/comm-esr45/sourc ... -dialog.js
http://dxr.mozilla.org/comm-esr45/searc ... escription
Thunderbird 52
http://dxr.mozilla.org/comm-esr52/sourc ... -iframe.js
http://dxr.mozilla.org/comm-esr52/searc ... escription
Try testing the following code in the error console.
Code: Select all
var iframe = Services.wm.getMostRecentWindow("Calendar:EventDialog").
document.getElementById("lightning-item-panel-iframe");
var win = iframe.contentWindow;
win.setElementValue("item-description", "Example");
* open config editor
* set devtools.chrome.enabled preference to true
* events and tasks > new task
* tools > developer tools > error console
* copy and paste code into error console
* press enter to run
Error Console command line
http://developer.mozilla.org/en-US/docs ... mmand_line
Similar thread: http://forums.mozillazine.org/viewtopic ... &t=3038776