ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Page editor removes custom html code


  • 2010-08-13 05:45:27

    Page editor removes custom html code

    Hi,
    We have a 2.0 install of atutor, we also have an extra module that allows us to play video files within course pages.
    When I click 'edit this page', I can see a blank box within the page editor that represents the video block, with the course text around it.

    The problem is, if I try and expand the menu items within the editor, the video block disapears, and clicking on 'HTML' shows that the code for the video block has been removed from the page :(
    Is there a way to stop the editor 'cleaning up' the code (I presume this is what its doing) ?

    Matt

  • 2010-08-13 06:25:32

    Re: Page editor removes custom html code :(

    The code that the editor is removing from the page is as follows :

    <!-- START OF DO NOT EDIT -->

    <iframe src="../content/articulate/r41d8cd98f00b204e9800998ecf8427e/player.html" height="700px" width="95%">
    <p>Your browser does not support iframes.</p>
    </iframe>

    <!-- END OF DO NOT EDIT --></div>

  • 2010-08-13 08:32:53

    Re: Page editor removes custom html code :(

    Its likely a browser rendering issue. See if it happens in different browsers.

  • 2010-08-13 09:17:23

    Re: Page editor removes custom html code :(

    Confirmed, I have tried copying your code into the editor. Swap it from HTML to plaintext, the <iframe> code disappeared.

    This is a TinyMCE config problem. I have added this to the bug tracker. We will post a patch once it's fixed.