TCPDF Page Break & visual editor

coughlin 21 Nov, 2017
In a previous support post you suggested adding
<br pagebreak="true"/>
to the html of the TCPDF action. So here is what I have done:

1. Click on TCPDF action [list=]in the Setup Tab
2. Click on the HTML butt[/list]on of the visual editor
3. Enter the pagebreak code
4. Save the form

NOTE: the Visual editor STRIPS the pagebreak code.

IF you turn OFF the visual editor, you CAN add the pagebreak code and it does work. However, if at any point after that you enable the visual editor, it will remove all of the page breaks.

Is there a way to get the visual editor to allow that code?
coughlin 30 Nov, 2017
Is there any way to change this behavior? Any time we open the form for editing, the WYSIWYG editor is enabled, so if we forget to turn it off the code gets stripped and we have to copy/paste the TCPDF code in again.
GreyHead 01 Dec, 2017
Hi coughlin ,

I haven't yet tried the TCPDF in CFv6 so I'm not certain that this will work. You could try defining the pagebreak string in a form variable then add that to the TCPDF template - hopefully CF will then insert the correct code.

Bob
CKEtest 31 Mar, 2019
Hi both

We are also facing issues with WYSIWYG editor enabled in the tcpdf action. In the pdf a table is built using a loop variable. Whenever we open the form in CFv6 WYSIWYG editor is enabled and the loop variable "jumps" sourrounded with a p-tag at the beginning of the table to be built. We then have to move manually the variable to the right place again. If we once forget the pdf will not be generated properly.

Is there a possibility to disable the WYSIWYG mode in the tcpdf action when opening the form in CFv6 ?

Best regards
healyhatman 31 Mar, 2019
Click the red X just above the editor to disable WYSIWYG
Max_admin 31 Mar, 2019
Answer
1 Likes
Hi,

Ok, the editor will be disabled by default in the TCPDF action in the next update!

Best regrads
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
CKEtest 31 Mar, 2019
1 Likes
Hi Max

Thank you for changing it.

Best regards
This topic is locked and no more replies can be posted.