1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 10:18:21 +01:00
antd-web-apps/apps/assets/coffee/MarkOn.coffee

17 lines
401 B
CoffeeScript
Raw Normal View History

2018-08-28 14:49:03 +02:00
class MarkOn extends window.classes.BaseObject
2018-08-28 15:07:46 +02:00
constructor: () ->
2018-08-28 14:49:03 +02:00
super "MarkOn"
init: () ->
me = @
@ready()
.then () ->
2018-08-28 15:07:46 +02:00
me.editor = new SimpleMDE { element: $("#editor")[0] }
2018-08-28 14:49:03 +02:00
.catch (m, s) ->
console.error(m, s)
MarkOn.dependencies = [
"/rst/gscripts/mde/simplemde.min.js"
]
makeclass "MarkOn", MarkOn