fixes #318 with a rebase

fixes/supersedes #318 with a rebase.

It looks like [the js part of this is already done](https://github.com/localwiki/localwiki/blob/master/sapling/pages/static/js/ckeditor/_source/plugins/embed/dialogs/embed.js#L75-82)? Any reason not to make this corresponding python change?