Ticket #1641 (closed story: fixed)

Opened 11 years ago

Last modified 10 years ago

Embed blocks

Reported by: hans Owned by: hans
Priority: blocker Milestone: 2.6
Component: generic Version:
Keywords: Cc:
Time planned: Time remaining:
Time spent:


Currently users must paste embed-code to the HTML view in Kupu when they want to embed external content (Youtube, Google Maps, etc). We have also a whitelist of external services that we support. This solution has the following problems:

  • Parsing pasted HTML and merging with Kupu HTML is complicated (Jukka?)
  • Teachers have to understand where to paste the embed code in the HTML view
  • It is possible to paste embed code only from some services (and users do not know, which services are supported)

I suggest that we should have three type of blocks in the "Web page" and "Exercise" templates:

  • text blocks
  • media blocks
  • embed blocks

The orded of buttons could be: [ Add media piece ] [ Add text block ] [ Embed ]

When user clicks on the "Embed" button, new block will be opened. This block contains <textarea> with 3 rows. We should use <textarea> instead of one input line to enable pasting multiple lines of code. This is important for services such as GeoGebra? (see example at http://www.geogebra.org/en/examples/pythagoras/pythagoras.html).

Embed block should have similar options as other blocks (deleting, moving up and down). Checking the validity of embed code should NOT be based on whitelist of allowed services. There are so many good Web 2.0 services that we do not know about.

This means that we can remove "Edit HTML code" button from Kupu.

Change History

comment:1 Changed 11 years ago by hans

  • Owner changed from anonymous to hans
  • Priority changed from major to blocker
  • Status changed from new to assigned
  • Milestone set to 2.6

comment:2 Changed 10 years ago by tarmo

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.