Also: Render all XModuleDescriptors in the cms the same way Default them to editing raw xml, if there is no specific module for them
10 lines
245 B
CoffeeScript
10 lines
245 B
CoffeeScript
class @Raw
|
|
constructor: (@id) ->
|
|
@edit_box = $("##{@id} .edit-box")
|
|
@preview = $("##{@id} .preview")
|
|
@edit_box.on('input', =>
|
|
@preview.empty().text(@edit_box.val())
|
|
)
|
|
|
|
save: -> @edit_box.val()
|