Files
thrilltrack-explorer/django/staticfiles/unfold/forms/js/trix.config.js
pacnpal d6ff4cc3a3 Add email templates for user notifications and account management
- 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.
2025-11-08 15:34:04 -05:00

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
})