Forums | Mahara Community
Developers
/
Embed.ly in 1.9?
03 November 2014, 21:34
Andrew hi.
I'm the maintainer of Embed.ly plugin (new version available at https://mahara.org/view/blocks.php?id=35826 BTW).
I've looked into your issue and discovered, that Embed.ly only supports "card" of Hackpad. That means it creates sort of a block/card that displays only the link to your Hackpad document.
As Kristina suggested you also cannot use iframes since the Hackpad embed code includes <script> tags.
The solution is to write custom filter for HTMLPurifier. You can find custom filter here: https://wiki.mahara.org/index.php/File:Htmlpurifier-hackpad-filter.zip
The zip file contain two files: Hackpad.php (this is the actual filter) and filters.xml (the file which lists all the available filters - this is the updated version of the file which also contains reference for Hackpad filter).
Installation instructions:
- Unzip the contents of the zip file to htdocs/lib/htmlpurifiercustom folder of your Mahara installation
- Then go to Administration => Extensions => HTML filters
- Click "Install" button
Usage instructions:
- On desired Mahara page create new Text block
- In block config window click left-most button of the first row of the editor to show all the buttons
- Then click right-most button in the last row, the one with <> icon - that will open new pop-up window
- Paste Hackpad embed code into that window.
- Save config settings and the page and voila!
HTH, Gregor
05 November 2014, 5:12
Many thanks for the custom Hackpad filter Gregor - another useful addtion to Mahara functionality!
And the Mahara community rocks too!
- «Previous page
- 1
- 2
- »Next page