Skip to content

Commit

Permalink
fix: address review comment, make video tag visible in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AyshaHakeem committed Sep 10, 2024
1 parent 23c2736 commit 2776d86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function setEditor() {
html: $(".wiki-content").html(),
},
callback: (r) => {
editor.setValue(r.message, 1);
editor.setValue(markdown_content || "", 1);
},
});

Expand Down
4 changes: 4 additions & 0 deletions wiki/wiki/doctype/wiki_page/templates/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@
<label class="text-sm">Content</label>
<div id="wiki-editor"></div>
</div>

<script>
const markdown_content = `{{content}}`;
</script>

0 comments on commit 2776d86

Please sign in to comment.