Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

wrapping with span in robohelp html editor

New Here ,
Nov 19, 2014 Nov 19, 2014

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?

544
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Nov 19, 2014 Nov 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 her

...
Translate
New Here ,
Nov 19, 2014 Nov 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 19, 2014 Nov 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.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 19, 2014 Nov 19, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2014 Nov 20, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2014 Nov 21, 2014
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp