text: angular.module("simplemde",[]).directive("simplemde",["$parse",function(e){return{restrict:"A",require:"ngModel",controller:["$scope",function(e){return{get:function(){return e.simplemde.instance},rerenderPreview:function(n){return e.simplemde.rerenderPreview(n)}}}],link:function(n,r,i,t){var l,u;l=e(i.simplemde)(n)||{},l.element=r[0];var c=new SimpleMDE(l);c.codemirror.on("change",function(){n.$applyAsync(function(){t.$setViewValue(c.value())})}),t.$render=function(){var e=t.$modelValue||l["default"];c.value(e),c.isPreviewActive()&&u(e)},u=function(e){},n.simplemde={instance:c,rerenderPreview:u}}}}]);