 
   # PALETTE HIGHLIGHT CODE
   # ================================
-  hook 'populate', 0, ->
+  hook 'populate', 1, ->
     @paletteHighlightCanvas = document.createElement 'canvas'
     @paletteHighlightCanvas.className = 'ice-palette-highlight-canvas'
     @paletteHighlightCtx = @paletteHighlightCanvas.getContext '2d'

    @aceEditor.getSession().setTabSize 2

    @aceEditor.on 'change', =>
      if @currentlyUsingBlogs and not @suppressAceChangeEvent
        @copyAceEditor()

    @currentlyUsingBlocks = true


    @wrapperElement.appendChild @aceElement

    console.log 'Just appended ace element'

    @aceEditor = ace.edit @aceElement

    @aceEditor.setTheme 'ace/theme/chrome'
