0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Treat markdown as text in editor

closes #857

- markdown is inserted into codemirror with .text() not .html()
This commit is contained in:
Hannah Wolfe 2013-09-26 21:06:52 +01:00
parent 3389c8d9b8
commit e1b1885750

View file

@ -281,7 +281,7 @@
this.addSubview(new PublishBar({el: "#publish-bar", model: this.model})).render();
this.$('#entry-title').val(this.model.get('title')).focus();
this.$('#entry-markdown').html(this.model.get('markdown'));
this.$('#entry-markdown').text(this.model.get('markdown'));
this.initMarkdown();
this.renderPreview();