Skip to main content
cgwhitehead83
Participant
Nov 19, 2014 7:37 PM UTC
Answered

wrapping with span in robohelp html editor

I'm using the html editor in RH11. I'm trying to wrap a list item in a span tag, but every time I save, the span tag gets moved inside the list tag. Is there away to turn off this auto-correct?

This topic is closed to new replies. Start a new post to keep the conversation going.
KimberlyO
KimberlyOCorrect answer
Inspiring
Nov 19, 2014 8:43 PM UTC

We don't use RH's HTML editor as it does do odd things at times. We use Notepad++ (free) for any HTML editing. There is a great (free) plugin for N++ called WebEdit that let's you apply tags with shortcut keys. You can also edit what HTML code it adds with your shortcut or if you use the code button that displays on the task bar.  After using RH to import my FrameMaker files, I mostly use RH for generating the output. N++ is used for any editing. (And thankfully, FrameMaker is on its way out here.)

5 replies

Community Expert
Nov 21, 2014 12:49 AM UTC

I don't believe you are supposed to put any tags except LI inside a UL or OL. You can however put other tags inside LI tags. So the following would be invalid HTML:


<ul>

     <span class="test"><li>Bullet 1</li></span>

     <li>Bullet 2</li>

</ul>

But this would be valid:

<ul>

     <li><span class="test">Bullet 1</span></li>

     <li>Bullet 2</li>

</ul>

Hope that help.

Translate
Willam van Weelden
Inspiring
Nov 21, 2014 1:08 PM UTC

You can only use <li> as childeren of UL/OL. So Amebr is right in pointing out the HTML is invalid. You can also use li classes as that will style the entire list item.

Kind regards,

Willam

Translate
cgwhitehead83
Participant
Nov 19, 2014 8:15 PM UTC

We have an in house js file that changes style based on user location. We're moving towards using RH conditional tags, but this "system" has been in place for awhile. As a workaround I added a class to the <li> tags and rewrote the script that was formerly just looking for spans and divs, but I still have the question. Is there a way to keep the rh editor from changing my markup? Would this be fixed by using a third party editor as my default, or will robohelp still overwrite?

Translate
KimberlyO
KimberlyOCorrect answer
Inspiring
Nov 19, 2014 8:43 PM UTC

We don't use RH's HTML editor as it does do odd things at times. We use Notepad++ (free) for any HTML editing. There is a great (free) plugin for N++ called WebEdit that let's you apply tags with shortcut keys. You can also edit what HTML code it adds with your shortcut or if you use the code button that displays on the task bar.  After using RH to import my FrameMaker files, I mostly use RH for generating the output. N++ is used for any editing. (And thankfully, FrameMaker is on its way out here.)

Translate
cgwhitehead83
Participant
Nov 19, 2014 11:56 PM UTC

Thanks...that sounds like the way to go...

Translate