Using special character in texts adds spans and more to the HTML

mnotermans5114
mnotermans5114 Community Member Posts: 916 ☆ Roadie ☆
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 ??

Comments

  • tea
    tea Community Member Posts: 128
    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

     

     
  • mnotermans5114
    mnotermans5114 Community Member Posts: 916 ☆ Roadie ☆
    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
  • tea
    tea Community Member Posts: 128
    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?
  • mnotermans5114
    mnotermans5114 Community Member Posts: 916 ☆ Roadie ☆
    mmm...weird have to doublecheck how i entered that special character...