Brendon Muir

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How do i can add text-alignment to trix ?

Is it perhaps because textAttributes are inline items and so don't support text alignment?

Also this bit seems wrong: return element.style.alignLeft === "left" as I think you'd be wanting to target element.style.textAlign.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.