Automatic paragraphs are inserted around shorttags between columns
-
I use the version 1.0 of the plugin in a WordPress 5.4.1 that’s running on the Classic Editor.
Problem
When I insert rows and column shorttags on a following line, the rendered code renders paragraphs between columns. When I insert extra spaces between tags, the tags are rendered correctly. Including details for replication below.Proposed Solutions
1. Ideal solution would be for the plugin to always strip out paragraphs and new lines between columns.
2. If the solution #1 is not an option please update TinyMCE plugin to render the tags with spacing that would generate accurate markup.Thank you.
Problem replication
When I use the editor plugin it gives me the following code:[GDC_row] [GDC_column size="third"] Your content here [/GDC_column] [GDC_column size="two-thirds"] Your content here [/GDC_column] [/GDC_row]
Which renders as broken code:
<div class="gdc_row"><p></p> <div class="gdc_column gdc_cthird"> <div class="gdc_inner"> Your content here </div> </div> <p></p> <div class="gdc_column gdc_ctwo-thirds"> <div class="gdc_inner"> Your content here </div> </div> <p> </p></div>
However, when I update the short tags to have extra spaces:
[GDC_row] [GDC_column size="third"] Your content here [/GDC_column] [GDC_column size="two-thirds"] Your content here [/GDC_column] [/GDC_row]
The rendered HTML is correct:
<div class="gdc_row"> <div class="gdc_column gdc_cthird"> <div class="gdc_inner"> Your content here </div> </div> <div class="gdc_column gdc_ctwo-thirds"> <div class="gdc_inner"> Your content here </div> </div> </div>
- The topic ‘Automatic paragraphs are inserted around shorttags between columns’ is closed to new replies.