Open BurninLeo opened 8 years ago
What can be a bug here is that it adds that align
CSS rule which does not exist. Instead, what it should be is text-align
.
This should be easily fixable once the new selection API style methods (#538) are implemented.
Hello,
SCEditor by default may allow left/center/justify/right alignment of text blocks. In version SCEditor v1.4.7 (HTML mode, using Firefox) I came across the following issue regarding these buttons:
When one of the buttons is clicked, the paragraph style gets an
align
attribute, e.g.,When I now click outside the editor, this changes to
text-align
Now, I return to the input, and click the center-button, which results in a conflicting CSS style:
The preview won't change, of course - unless I click outside the editor, which then results in:
Now, when I click back into the input, SCEditor does not recognize the paragraph of being centered, and still shows the "left" button active.
I hope, this description helps to improve the alignment buttons of the magnificent SCEditor. Thank you!