EnlighterJS / Plugin.WordPress

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

Design problems with the newest WordPress #298

Closed KodaCHC closed 3 years ago

KodaCHC commented 3 years ago

Hi

Today I tested your plugin. The whole thing looks very interesting. I use the latest Wordpress version.

My problem is that the code blocks are not displayed in the middle like the standard blocks but all complete links are displayed at the border. Also the buttons to copy the code are not readable with a single line code.

image

The second problem is when I use a code with HTML characters (masked). Then I always get an error in the backend

image

Best regards

Koda

AndiDittrich commented 3 years ago

Hi @KodaCHC ,

please read the docs regarding twentytwenty: https://github.com/EnlighterJS/documentation/blob/master/wordpress/WPThemeCompatibility.md

EnlighterJS block mode is not designed to display a single line only (see other issues/questions) - you can use the inline mode or add additional padding via CSS

AndiDittrich commented 3 years ago

regarding the escape sequences i'm unable to reproduce the warning. but with one of the last releases there seems to be an issue that escape sequence will be automatically converted into their chars

KodaCHC commented 3 years ago

Sorry. I have read the Docu froom JS and not from wordpress. Thank you this work.

I can always reproduce the HTML error when I use this code: pid  /var/run/nginx.pid;

AndiDittrich commented 3 years ago

ok i'll check this

KodaCHC commented 3 years ago

ok i'll check this Thank yor for check and your fast answer

you can use the inline mode Do you mean the inline code from Gutenberg editor, or is there an other inline code from your Plugin?

AndiDittrich commented 3 years ago

inline code is supported by classic editor / markdown / shortcode

AndiDittrich commented 3 years ago

an update for the Gutenberg plugin is available.

to test it, just replace the files in enlighter/resources/gutenberg with the latest ones (master branch dist/ directory)

KodaCHC commented 3 years ago

The first test work great. Thank you for the fast fix