                 if title.length > 0
                     title = " title='#{title}'"
                 s = "<img src='#{url.val()}'#{width}#{height}#{title}>"
-            cm = @cm()
             selections = cm.listSelections()
             selections.reverse()
             for sel in selections


        @init_preview_select()

        # this is entirely because of the chat
        # currently being part of @source_editor, and
        # only calling the show for that; once chat

                else
                    s = "\\url{#{url}}"

            selections = cm.listSelections()
            selections.reverse()
            for sel in selections
