Using External HTML adds anchor tags that break things

Comments

  • ssneg
    ssneg Community Member Posts: 1,456 ♪ Opening Act ♪
  • ray-gesualdo
    ray-gesualdo Community Member Posts: 2
    I ran into this same problem while I was adding custom jQuery interactions in Lectora. It is due to Lectora positioning the closing tag for in the wrong spot. To correct this, I ended up putting my own at the very beginning of my External HTML object. This seems to do the trick.



    Before:



    [INDENT]your code[/INDENT]

    [/CODE]

    After:
    [CODE]

    [INDENT]
    [/INDENT]
    [INDENT]your code[/INDENT]

    [/CODE]

    Note: If you look at the source code, you'll notice that Lectora still keeps it's own after the entire object (whose position is what's causing this issue in the first place), but don't worry about it. Browsers will simply dump the extra closing tag.

    Hope that helps![CODE]



    your code



    [/CODE]



    After:



    [INDENT]
    [/INDENT]
    [INDENT]your code[/INDENT]

    [/CODE]

    Note: If you look at the source code, you'll notice that Lectora still keeps it's own after the entire object (whose position is what's causing this issue in the first place), but don't worry about it. Browsers will simply dump the extra closing tag.

    Hope that helps![CODE]







    your code



    [/CODE]



    Note: If you look at the source code, you'll notice that Lectora still keeps it's own after the entire object (whose position is what's causing this issue in the first place), but don't worry about it. Browsers will simply dump the extra closing tag.



    Hope that helps!