Explore the community Forums Lectora Online Lectora Online Questions & Answers Using special character in texts adds spans and more to the HTML

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #446326 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    129 pts
    @mnotermans5114

    So i have a textfield with text… ‘Lorem ipsum bla bla’ Just one textfield… the moment i add a special character to it, like this…  ‘Lorëm ipsum bla bla’ Lectora adds a span in the HTML for it, thus disabling all javascript for me to target that specific text.

    In HTML in Lectora that looks like this…
    Lo<span style=”display: none;”>&nbsp;</span>&euml;<span style=”display: none;”>&nbsp;</span>rem<br />

    and without like this..
    Lorem

    Targetting the textfield with code now is at least difficult.. Can this be fixed ??

    #446405 Score: 0
    Profile photo of tea
    tea
    Member
    beginner
    intermediate
    curious george
    profile
    friend finder
    wise owl
    picture perfect
    contributor
    5 pts
    @tea

    Hi @mnotermans5114  I’m trying to recreate your issue, but even without the special character I am seeing a span. Not sure I’m doing this right though. I am in FF, I tried typing in new text and copy/paste your text. Without the special char I see what’s in the attached screen shot

     

     

    Attachments:
    #446443 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    129 pts
    @mnotermans5114

    Hi @tea … 1 span…that aint the problem…the problem occurs when adding a special character in the text ( Lectora Online ) for example… ë

    Then Lectora generates a new span… actually 2 spans…1 before and 1 after the special character…
    Like this…

    <span style=”display: none;”>&nbsp;</span>
    &euml;
    <span style=”display: none;”>&nbsp;</span>

     

    whereas i would like to have only…

    &euml;

    Kind regards,
    Math

    #446499 Score: 0
    Profile photo of tea
    tea
    Member
    beginner
    intermediate
    curious george
    profile
    friend finder
    wise owl
    picture perfect
    contributor
    5 pts
    @tea

    hey @mnotermans5114 I am still not able to get the duplicate span.

    How are you entering the special char?  I tried using the “Insert Special Character” while editing the text block, typing Alt-235 (and a couple others), and copy/paste from you post to the forum.

    Single text block on my page, publish to HTML in Chrome and FF, check the dev tools:

    <span style=”font-family:’Arial’,sans-serif;font-size:12pt;color:#000000″>attempt to duplicate the&nbsp;ëissue from the forum</span>

    Know of any steps I may have missed?

    #446554 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    129 pts
    @mnotermans5114

    mmm…weird have to doublecheck how i entered that special character…

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.