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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I gave default alignment for editor is centre by using querySelctor like this:
const defaultTextAlignment = "center";
const editorContent = document.querySelector(".ql-editor");
if (editorContent) {
editorContent.style.textAlign = defaultTextAlignment;
}
But if I want to change the text alignment to left by using toolbar option, it won't work.
How to apply text align left on top of it?
Beta Was this translation helpful? Give feedback.
All reactions