JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Text Boxes & Inputs [editor] issue with br tags and Align:Center

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #109237
    fabriceb
    Participant

    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 5 months ago by fabriceb.
    #109239
    Markov
    Keymaster

    Hi fabriceb,

    Thank you for the feedback. We will research this and resolve it as soon as possible.

    Regards,
    Markov

    #109240
    Markov
    Keymaster

    Hi fabriceb,

    The issue is reproduced and will be resolved in the next version.

    Thanks again for the feedback.

    Regards,
    Markov

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.