wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Image float left/right works in editor, but not on final rendered page

Open brewerc1 opened this issue 6 years ago • 2 comments

Describe the bug In editor, if I float an image right or left, it behaves as expected. But when page is saved, the image is left aligned as a block-level element, not floated left/right.

To Reproduce Steps to reproduce the behavior:

  1. create page with visual editor, and add content (or edit existing page with the visual editor).
  2. upload/choose and image
  3. float image left or right.
  4. save page.
  5. view page and notice that image is not floated left or right.

Expected behavior When floated left or right in editor

Screenshots Editor: editor Rendered Page: rendered

Host Info (please complete the following information):

  • OS: Ubuntu 18.04 w/node.js 10.18.1
  • Wiki.js version: 2.0.12
  • Database engine: postgres 10.10

brewerc1 avatar Jan 27 '20 14:01 brewerc1

UP. This bug in 2.3.81 too

Scrik avatar Jun 01 '20 09:06 Scrik

I have a fix for this. I'll make a PR shortly.

DAlperin avatar Jun 02 '20 16:06 DAlperin