added support for embedding cards via button in the editor