modify calendar-event-dialog to add default text

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
Posts: 7
Joined: February 23rd, 2018, 5:54 am

Post Posted March 15th, 2018, 6:16 am

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

Posts: 3164
Joined: February 3rd, 2009, 6:29 pm

Post Posted March 15th, 2018, 12:09 pm

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 ?

Are you talking about the following thread?


Thunderbird 45"item-description

Thunderbird 52"item-description

Try testing the following code in the error console.

Code: Select all
var iframe = Services.wm.getMostRecentWindow("Calendar:EventDialog").
var win = iframe.contentWindow;
win.setElementValue("item-description", "Example");


* open config editor
* set 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

Similar thread: viewtopic.php?f=46&t=3038776

Return to Calendar

Who is online

Users browsing this forum: No registered users and 1 guest