mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 17:51:12 -05:00
- Created a base email template (base.html) for consistent styling across all emails. - Added moderation approval email template (moderation_approved.html) to notify users of approved submissions. - Added moderation rejection email template (moderation_rejected.html) to inform users of required changes for their submissions. - Created password reset email template (password_reset.html) for users requesting to reset their passwords. - Developed a welcome email template (welcome.html) to greet new users and provide account details and tips for using ThrillWiki.
40 lines
858 B
JavaScript
40 lines
858 B
JavaScript
Trix.config.blockAttributes.heading2 = {
|
|
tagName: "h2",
|
|
breakOnReturn: true,
|
|
group: false,
|
|
terminal: true
|
|
}
|
|
|
|
Trix.config.blockAttributes.heading3 = {
|
|
tagName: "h3",
|
|
breakOnReturn: true,
|
|
group: false,
|
|
terminal: true
|
|
}
|
|
|
|
Trix.config.blockAttributes.heading4 = {
|
|
tagName: "h4",
|
|
breakOnReturn: true,
|
|
group: false,
|
|
terminal: true
|
|
}
|
|
|
|
Trix.config.blockAttributes.p = {
|
|
tagName: "p",
|
|
breakOnReturn: true,
|
|
terminal: true
|
|
}
|
|
|
|
Trix.config.textAttributes.underlined = {
|
|
tagName: "u",
|
|
inheritable: true,
|
|
parser(element) {
|
|
const style = window.getComputedStyle(element);
|
|
return style.textDecoration === "underline";
|
|
},
|
|
}
|
|
|
|
document.addEventListener("trix-before-initialize", () => {
|
|
Trix.config.toolbar.getDefaultHTML = () => document.getElementById("trix-toolbar").innerHTML
|
|
})
|