[TaskviewColorMode] Taskview description texts justify trick

I applied texts justify of taskview to new addon, TaskviewColorMode ver 1.2.

Order of scripts is as below.

textAlign(justify) > textAlignLast(justify) > whiteSpace(pre-line) > textAlignLast(left).

document.getElementById(‘calendar-task-details-description’).style.textAlign = ‘justify’;
document.getElementById(‘calendar-task-details-description’).style.textAlignLast = ‘justify’;
document.getElementById(‘calendar-task-details-description’).style.whiteSpace = ‘pre-line’;
document.getElementById(‘calendar-task-details-description’).style.textAlignLast = ‘left’;
document.getElementById(‘calendar-task-details-description’).style.textJustfy = ‘inter-character’;

From Sungho Hwang.

CSS…

#calendar-task-details-description {
text-align: justify;
}
#calendar-task-details-description {
text-align-last: justify;
}
#calendar-task-details-description {
white-space: pre-line;
}
#calendar-task-details-description {
text-align-last: left;
}
#calendar-task-details-description {
text-justify: inter-character;
}

When editing texts, text align should be reset in “inherit”.

window.document.getElementById(‘calendar-task-details-description’).style.textAlign = ‘inherit’;
window.document.getElementById(‘calendar-task-details-description’).style.textAlignLast = ‘inherit’;