Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
koopmant committed Oct 14, 2024
1 parent 27cab7e commit 5c04f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/grandchallenge/core/static/js/markdownx_full_page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$("document").ready(() => {
// Sync the height of the preview element to the height of the editor element.
// Sync the height of the preview element to the height of the editor element.
// This lets the user adjust the height of both elements by resizing the editor.
$(document).ready(() => {
const ELEMENTS = document.getElementsByClassName("markdownx");
Object.values(ELEMENTS).map(element => {
const editor = element.querySelector(".markdownx-editor");
Expand Down
2 changes: 2 additions & 0 deletions app/grandchallenge/core/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def media(self):


class MarkdownEditorFullPageWidget(MarkdownEditorInlineWidget):
"""Customized MarkdownX widget with side-by-side panes."""

template_name = "markdownx/full_page_widget.html"

class Media:
Expand Down

0 comments on commit 5c04f63

Please sign in to comment.