Copy link to clipboard
Copied
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?
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 her
...Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.)
Copy link to clipboard
Copied
Thanks...that sounds like the way to go...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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