You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a little problem using trix... I created a new feature to add a button for align-center, align-right and align-left. The problem I face is sanitization in the trix editor.
`import { Controller } from "@hotwired/stimulus";
import * as AlignmentElements from "../alignment_elements";
initTrix () {
window.Trix = Trix; // Don't need to bind to the window, but useful for debugging.
Trix.config.toolbar.getDefaultHTML = toolbarDefaultHTML;
I have a little problem using trix... I created a new feature to add a button for align-center, align-right and align-left. The problem I face is sanitization in the trix editor.
`import { Controller } from "@hotwired/stimulus";
import * as AlignmentElements from "../alignment_elements";
export default class TrixController extends Controller {
static targets = ['editor']
connect() {
this.initTrix()
}
initTrix () {
window.Trix = Trix; // Don't need to bind to the window, but useful for debugging.
Trix.config.toolbar.getDefaultHTML = toolbarDefaultHTML;
}
}`
The text was updated successfully, but these errors were encountered: