added asset button to visual editor

This commit is contained in:
Tom Giannattasio
2012-11-16 11:43:21 -05:00
parent 10a4d4ec25
commit c7dbdc1242
7 changed files with 161 additions and 84 deletions

View File

@@ -96,6 +96,7 @@ class CMS.Views.UnitEdit extends Backbone.View
initProblemEditors(@$editor, $preview)
when 'html'
@$editor = $($('#html-editor').html())
$preview = $('<div class="html-preview"></div>')
initHTMLEditor(@$editor, $preview)
when 'discussion'
@$editor = $($('#discussion-editor').html())
@@ -109,8 +110,7 @@ class CMS.Views.UnitEdit extends Backbone.View
$componentActions = $($('#component-actions').html())
@$componentItem.append(@$editor)
if $preview
@$componentItem.append($preview)
@$componentItem.append($preview)
@$componentItem.append($componentActions)
@$componentItem.hide()