Leafpub/leafpub

Embed alignment

karsasmus opened this issue ยท 1 comments

Thanks for using Postleaf! ๐Ÿ’™๐Ÿ’š

This issue tracker is ONLY for bug reports. If you need help with something or would like to request a feature, please ask on https://community.postleaf.org/ instead.


Issue Summary

Alignment issues with embeds.

center: Text is marked, you can't add a new line nor delete the mark
align center

right:
align right

left:
left align

Steps to Reproduce

Tell us how to replicate the problem.

  1. Embed a simple link <a href="something.html"> Something </a>
  2. choose alignment center
  3. copy this embed
  4. choose the copy's alignment right/left

Additional info

  • Postleaf version: master branch
  • PHP version: 5.5.9
  • Affected browsers: Chrome 52
  • Operating system: Ubuntu/ChromeOS

You have to move the cursor left/right (to get it off the embed block) before hitting enter.

This is sort of an edge case as it's only really noticeable when you have just an embed on the page. When you have content above/below you probably won't run into it very much.

Either way, this one is out of Postleaf's control. contentEditable="false" handling is completely up to TinyMCE, so improvements to this behavior should be submitted to their project :)