EnlighterJS / Plugin.WordPress

:package: Official WordPress Plugin of EnlighterJS
http://wordpress.org/plugins/enlighter/
GNU General Public License v2.0
115 stars 18 forks source link

Some visual errors in latest stable Enlighter.v4 #242

Closed TheLordOfTheKings closed 4 years ago

TheLordOfTheKings commented 4 years ago

Hi dear Andy, I've come across some visual errors after updating to latest stable v4 branch from official Wordpress repo. Please consider below screenshot:

1- In RAW mode there is a couple of extra tabs before lines begins; which wasn't there in the previous version and kinda looks bad.

2- I can't hide info button("E") from toolbar anymore.

3- Toolbar is very ill-placed inside single row blocks.

enlighter

AndiDittrich commented 4 years ago

Hi @arash88 ,

thanks for your feedback.

  1. it is the intended behaviour: by switching to raw code (with enabled line numbering) the padding is retained to avoid "flipping" of the codeblock. you can override this with custom css

  2. you can remove the button manually via custom css, v4.1 may include an option to hide it but i'm currently not sure if this is a good solution.

  3. EnlighterJS is not designed for single lines of code - use the inline mode instead or disable the toolbar

AndiDittrich commented 4 years ago

v4.1 has been released including an option to disable the attribution button