• It looks like Enlighter is inserting <br></br> tags (exactly like that) between certain elements. It seems to be cropping up between span tags. Obviously it causes formatting problems, but it’s also malformed HTML. The br tag is an empty tag, it should never be used to try and enclose anything. In any case, as soon as I disable Enlighter, no more extraneous br tags end up being inserted anywhere. It’s unfortunate, because it looks like a fairly slick plugin, but for me, it’s unusable in its current state.

    https://www.ads-software.com/plugins/enlighter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    Dear Mike,
    thank’s for your feedback. That seems to be a very strange problem…could you provide me an example ? Are you using the VisualEditor or Shortcode mode ? Generally Enlighter doesn’t add any linebreaks.

    WordPress itself causes some problems by adding br/p tags (wpautop filter), but the Enlighter Settings Advanced Options -> “WpAutoP” Filter Priority should avoid such issues.
    Are you using any other highlighting/formatting plugins which may cause the malformed code ? What happens if you disable all plugins other than Enlighter ?

    best regards, Andi

    Thread Starter Mike Stefanik

    (@mike-stefanik)

    I’m using a theme in conjunction with Visual Composer, but it really isn’t practical for me to disable all other plugins (because the theme itself depends on a few, and the site just wouldn’t work at all at that point). I do know when I went through and systematically disabled the other non-theme related plugins trying to pin down what could be causing it, it was Elighter that seemed to be the issue.

    With all other plugins enabled, with Enlighter enabled, the problem occurred, with it disabled, the extra <br></br> pairs were no longer being generated. It may be some specific interaction with Enlighter and Visual Composer or another plugin, but at this point, the path of least resistance for my particular site is to find another syntax highlighter plugin, rather than replace a bunch of other plugins.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    Well..VisualComposer may cause this issue, because it’s very deeply integrated into WordPress and it’s filters as well as modifies the content. Generally i cannot test Enlighter against every Content-Managing tool, sorry for this but it’s an off time project. With pure TinyMCE it will work fine! ??

    Maybe “WP Syntax Highlighter” or “crayon syntax highlighter” will work for you.

    btw. it would be great if you can add a remark to your review that you’r using VisualComposer.

    Thread Starter Mike Stefanik

    (@mike-stefanik)

    Sure, I can do that. And I really did like how Enlighter works, I just thought it was strange that it was impacting pages (somehow) that had no syntax highlighting used on them at all.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    thanks!
    the only possibility can be the option Enlighter Settings Advanced Options -> "WpAutoP" Filter Priority this is the only function which modifies the standard WordPress behaviour on each page (including a warning). I believe the WpAutoP in combination with the VisualComposer and Enlighter will cause the issue and it should disappear when changing these option to “default – no change”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Extra breaks’ is closed to new replies.