     false
 
   getEmbedFromNode: (node)=>
-    @node = node
-    $.getJSON("#{current_editor.oembed_url}#{$(@node).text()}").done (data)=>
+    @node_name = $(node).attr("name")
+    $.getJSON("#{current_editor.oembed_url}#{$(@node).text()}").success (data)=>
+      @node = $("[name=#{@node_name}]")
       iframe_src = $(data.html).prop("src")
       tmpl = $(@embedTemplate())
       tmpl.attr("name", @node.attr("name"))

            utils.log "images"
            #set figure non editable
          when "a"
            utils.log "links"
            $(n).wrap("<p class='graf graf--#{name}'></p>")
            n = $(n).parent()
            #dont know

      </div>

    </section>"

  baseParagraphTmpl: ()->
    "<p class='graf--p' name='#{@generateUniqueName()}'><br></p>"

  appendMenus: ()=>
    $("<div id='editor-menu' class='editor-menu' style='opacity: 0;'></div>").insertAfter(@el)
