Ticket #1641 (assigned story)

Opened 1 year ago

Last modified 3 months ago

Embed blocks

Reported by: hans Assigned to: hans (accepted)
Priority: blocker Milestone: 2.6
Component: generic Version:
Keywords: Cc:
Time spent: Time remaining:
Time planned:

Description

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

10/08/08 14:37:05 changed 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.