Skip to main content
cgwhitehead83
Participant
November 19, 2014
Answered

wrapping with span in robohelp html editor

  • November 19, 2014
  • 2 replies
  • 548 views

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 has been closed for replies.
Correct answer KimberlyO

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.)

2 replies

Community Expert
November 21, 2014

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.

Willam van Weelden
Inspiring
November 21, 2014

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

cgwhitehead83
Participant
November 19, 2014

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?

KimberlyO
KimberlyOCorrect answer
Inspiring
November 19, 2014

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.)

cgwhitehead83
Participant
November 19, 2014

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