Applet code gone

Applet code gone

ដោយ Franck Bellemain នៅ
ចំនួនតប៖ 3

Hello,

I just upgrade my moodle to 1.5+ version. Now, each time I open for atualization an html page with java applets, the html code <applet>...</applet> is removed in the html editor and the applets are, obvioulsy, not displayed. Is there something that should be done in the configuration to avoid this?

Thank you,

Franck

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Franck Bellemain

Re: Applet code gone

ដោយ Petr Skoda នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Peer reviewers រូបភាព Plugin developers
Hi!

<applet>, <embed> and <object> tags are not allowed in forum post. You have to place them in resources or uploaded html files.

The reason is security, I do not recommed changing the list of $ALLOWED_TAGS in weblib.php.

skodak
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Franck Bellemain

Re: Applet code gone

ដោយ Janne Mikkonen នៅ
Tag <applet> are not in $ALLOWED_TAGS variable nor it isn't under $CFG->allowobjectembed (these can be found at the top of weblib.php file just after format constants)

So you'll need add <applet> tag in one of them

- Janne -
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Janne Mikkonen

Re: Applet code gone

ដោយ Franck Bellemain នៅ

Thank you.

I never had the courage to change this "allowed tags" list, but it seems that now I have to.

It works fine !

Franck

មធ្យមភាគនៃរង្វាយតម្លៃ: -