suneditor icon indicating copy to clipboard operation
suneditor copied to clipboard

Cannot align buttons

Open whatisjery opened this issue 3 years ago • 3 comments

Describe the bug Prefixing a button list by "-right" or "-left" ex: ["-right", "my-button"] doesn't seem to work above version 2.41.3

To Reproduce 1 - try to align a button list using "-left" or "-right"

Expected behavior Should be properly aligned

Screenshots Capture d’écran 2022-03-02 à 16 11 45 adding -right seems to add the class "module-float-right" yet it dosen't do anything If I directly edit the style in google chrome console by adding the style { float: right } to .module-float-right it seems to fixes the problem, is that what the class is supposed to do ?

Desktop (please complete the following information):

  • Browser : Chrome v98.0.4758.109
  • suneditor : 2.42.0

whatisjery avatar Mar 02 '22 15:03 whatisjery

https://github.com/JiHong88/SunEditor/blob/master/src/assets/css/suneditor.css#L528 It's defined the subeditor.css or subeditor.min.css.

JiHong88 avatar Mar 02 '22 15:03 JiHong88

@JiHong88 Thank you, the problem is probably on my end - (i'm using React) the only classes that aren't applied are those two 🤷‍♂️

whatisjery avatar Mar 03 '22 09:03 whatisjery

It could also be due to browser cache or CSS file links.

JiHong88 avatar Mar 03 '22 11:03 JiHong88