GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.21k stars 416 forks source link

[Bug]: Not able to center image in a post, after generating the changes are lost #1201

Open Yobikap opened 1 year ago

Yobikap commented 1 year ago

Operating system

macOS Monterey 12.2.1

Publii version

0.42.1 (build 16233)

Post editor

WYSIWYG editor

Bug description

When uploading a new image from tiny and wrap is around with anchor link and center the image I see clearly in the generated code, that the image is not wrapper around a P tag and does not contain aligh-center class.

After generating or previewing the post, the changes are lost.

Steps to reproduce

  1. Create a new post
  2. Add a image in the page
  3. Center the image
  4. Create a anchor link in the image
  5. Save it

Click on "Preview your changes", and you see that the image is not centered anymore.

Relevant log output

No response