Using special character in texts adds spans and more to the HTML
June 14, 2020 12:00 AM
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...
Loundefined
and without like this..
Lorem
Targetting the textfield with code now is at least difficult.. Can this be fixed ??
Discussion (4)
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
undefined
![span.png](https://community.elblearning.com/hubfs/CohortiumThreadImages/7c8883c9ff4491986c014a25e0c02562.png)
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:
undefinedfont-size:12pt;color:#000000"undefined
Know of any steps I may have missed?
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...
undefined
Kind regards,
Math
mmm...weird have to doublecheck how i entered that special character...
Discussions have been disabled for this post