Advanced HTML Editor 3 Support Product Page

Answered

Prevent <p></p> tags from being entered in AHE3

Asked 25 Oct 2016 12:39:03
1
has this question
25 Oct 2016 12:39:03 David Woolley posted:
How would I prevent <p></p> tags from being entered by default in AHE3?
I'm using the Database Updater PHP extension to insert & update records.
I have several AHE3 textboxes and I need to show or hide them in a (separate) detail page, depending if they have content or not.

For example I'm hiding the data binding like so on a Comment field if it is empty:

<div data-binding-hide="{{(Comment == &quot;&quot}}">
<em>Comments:</em>

<div data-binding-html="{{Comment}}"></div>


</div>

But this does not work with the extra <p></p>

I was not sure where to post this question as it also concerns the Database Updater PHP extension.

Replies

Replied 03 Nov 2016 12:09:27
03 Nov 2016 12:09:27 David Woolley replied:
How would I prevent <p></p> tags from being entered by default in AHE3?
Is this possible?
Replied 03 Nov 2016 12:59:23
03 Nov 2016 12:59:23 Teodor Kuduschiev replied:
Hello David,
It is not possible to remove the p tags from the AHE3 body, as they are required for cross-browser compatibility.

Reply to this topic