Hi,
I face a problem with the editor, when I want to change alignment of text inside a block of text with <br>.
exemple ONE :
TEST
TEST
TEST
==> the HTML generated is
<p>TEST</p>
<p>TEST</p>
<p>TEST</p>
Now I want to centerĀ the 2nd line : I select the line and use the icon [cneter],
==> the HTML generated is
<p>TEST</p>
<p style=”text-align: center; “>TEST</p>
<p>TEST</p>
==> OK, it works
EXAMPLE 2 : let’s try with <BR> in texts (using SHIFT + ENTER in editor)
TEST
TESTWithBR1
TESTWithBR2
TEST
TEST
==> the HTML generated is
<p>TEST</p>
<p>TESTWithBR1<br>
TESTWithBR2<br>
TEST</p>
<p>TEST</p>
Now I want to add a text-align center, between Third and Fourth Line : I select TESTWithBR2 and click on icon [Center]
The text looks OK, but here is the generated HTML :
<p>TEST</p>
<p>TESTWithBR<br><div style=”text-align: center;”><span style=”background-color: initial; font-family: inherit; font-size: inherit; color: var(–smart-background-color); font-weight: var(–smart-font-weight);”>TESTWithBR</span></div>
TEST</p>
<p>TEST</p>
it creates a div tag, and a span tag.
In the span tag, it adds weirds code, using : var(–smart-background-color) and var(–smart-font-weight)
The problem is that these vars are unknown if I want to use the HTML code.
For example, if I want to generate a PDF document,(using TCPDF for example) , using the HTML generated, the lines containing var(–smart-background-color) disappear in the PDF.
fabriceb
-
This topic was modified 1 year ago by fabriceb.