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

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;"> </span>ë<span style="display: none;"> </span>rem<br />
and without like this..
Lorem
Targetting the textfield with code now is at least difficult.. Can this be fixed ??
In HTML in Lectora that looks like this...
Lo<span style="display: none;"> </span>ë<span style="display: none;"> </span>rem<br />
and without like this..
Lorem
Targetting the textfield with code now is at least difficult.. Can this be fixed ??
Comments
-
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
-
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;”> </span>
ë
<span style=”display: none;”> </span>
whereas i would like to have only...
ë
Kind regards,
Math -
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 ëissue from the forum</span>
Know of any steps I may have missed? -
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 329 CenarioVR®
- 196 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products