ATutor

Learning Management Tools







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


editor problem


  • 2008-10-09 04:39:56

    editor problem

    Hi
    I think something is wrong in ATutor Editor, I enter the code below on the text editor and then switch to virtual editor to do some changes and then back to text editor some of the content code remove by the editor.
    check editor with this code:

    <p><strong><span style="font-size: medium; font-family: tahoma,arial,helvetica,sans-serif;"> </span> </strong>
    <table dir="rtl" border="0" align="center">
    <tbody>
    <tr>
    <td>
    <a href="http://lms.mums.ac.ir/content.php?cid=81"><span style="font-size: 16px; font-family: tahoma;color: #336699;">1. </span>
    </a>
          
    <a href="../content.php?cid=4341"><span style="font-size: 16px; font-family: tahoma;color: #990033;"> 2. </span></a>
          

    <a href="../content.php?cid=4342"><span style="font-size: 16px; font-family: tahoma;color: #009933;">
    3. </span></a></td>
    </tr>
    </tbody>
    </table>
    </p>
    <iframe name="I1" src="http://lms.mums.ac.ir/get.php/9052.cervical_cancer_files/cervical cancer_files/frame.htm" width="100%" height="528">
    Your browser does not support inline frames or is currently configured not to display inline frames.
    </iframe></p>



    after switch to text editor it shows this code:
    <p><strong><span style="font-size: medium; font-family: tahoma,arial,helvetica,sans-serif;"></span></strong>
    <table dir="rtl" border="0" align="center">
    <tbody>
    <tr>
    <td><a href="http://lms.mums.ac.ir/content.php?cid=81"><span style="font-size: 16px; color: #336699; font-family: tahoma;">1. </span> </a> <a href="../content.php?cid=4341"><span style="font-size: 16px; color: #990033; font-family: tahoma;">2. </span></a> <a href="../content.php?cid=4342"><span style="font-size: 16px; color: #009933; font-family: tahoma;">3. </span></a></td>
    </tr>
    </tbody>
    </table>
    </p>
    <p> </p>



    iframe tag remove by ditor!!!!
    Any help would be appreciated.

  • 2008-10-09 06:36:56

    Re: editor problem

    hia, this is more likely a feature than a bug, as TinyMCE strips some elements by default, see:

    http://wiki.moxiecode.com/index.php/TinyMCE:FAQ#TinyMCE_strip_away_attributes_or_tags_from_my_source.3F

    ..and I am *guessing* you will have to allow iframe (with attributes) in extended_valid_elements in the configuration, which you will find in:

    /include/lib/tinymce.inc.php around line 82.

  • 2008-10-09 08:29:59

    Re: editor problem

    thank you very much vegard for your useful help.