Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$('textarea[data-editor]').each(function () {
var options = $(this).data();
options.markdown = ('markdown' in options) && (options.markdown === '' || options.markdown);
UIkit.htmleditor(this, $.extend({}, { marked: marked, CodeMirror: CodeMirror }, options));
});