Hello,
I use Joomla 4.3.4, JCE 2.9.50 FREE and SP Page Builder PRO 5.1.3.
I think there is a bug in SP Page Builder Pro in combination with JCE.
The problem:
If SP Page Builder PRO and JCE is used in the backend editor the following HTML:
<p class="mb-0">Test text.</p>
Converts to the below HTML if you for example edit the text.
<p> </p>
<p class="mb-0">Test text.</p>
<p> </p>
I've already posted this problem at the JCE forum:
https://www.joomlacontenteditor.net/support/forum/114854-p-tag-added-before-and-after-if-first-paragraph-has-a-class-and-jce-and-sppb-backend-editor-is-used
There it is said that this is due to some code in the file:
administrator/components/com_sppagebuilder/assets/editor/dist/js/bundle.min.js
The problem only occurs:
- If the backend editor of SP Page Builder Pro is used in combination with JCE.
- If the first paragraph has a class. In the example I have the "mb-0". But it also occurs when you use the class "text-center".
The problem does not occur:
- If the frontend editor of SP Page Builder Pro is used in combination with JCE.
- If I use the default TinyMCE editor.
- If the first paragraph has no class. The second paragraph may have a class.
So there is a problem if the first paragraph tag has a class.
Regards,
Jeroen