 
     # Paste as plain text, but this doesn't work all the way
     editor.config.forcePasteAsPlainText = true
-    editor.on 'afterPaste', (evt) -> editor.setData(editor.getData().replace( /<[^<|>]+?>/gi,'')) 
+    editor.on 'afterPaste', (evt) -> editor.setData(editor.getData().replace(/<[^<|>]+?>/gi,'')) 
 }
 
 Snippets = {

    editor.on 'afterPaste', (evt) -> editor.setData(editor.getData().replace( /<[^<|>]+?>/gi,'')) 

  initSnippetsRegion: (editor) ->
    console.log 'snippet'
    
    # Disable wrapping content with <p></p>.  This could break plugins.
    editor.config.autoParagraph = false
    editor.setActiveEnterMode(CKEDITOR.ENTER_BR, CKEDITOR.ENTER_BR)

    content = $('<div>' + instance.getData() + '</div>')
    content.find("div.#{snippet_id}").replaceWith("[#{snippet_id}]") for snippet_id in snippet_ids

    # Process Snippet Only Regions
    if instance.config.toolbar == 'snippets'
      content = content.text()
      content = content.replace(/\]\s+\[/gi, '') if content.indexOf('[snippet_') > -1
    else
      content = content.html()

    {content: content, snippets: snippets}

  exec: (editor) ->
    data = {}
