Capturing Text box content when enabling markdown editor

This commit is contained in:
Alan Roberts 2024-08-16 14:41:39 -04:00
parent 474ff8c194
commit 3eb4736a47
6 changed files with 6 additions and 3 deletions

View file

@ -691,6 +691,7 @@ function setupMarkdownEditorEnabler() {
elem: document.querySelector('#' + dataId),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
value: document.getElementById(dataId).value
});
setupAutoResize(dataId);
link.style.display = 'none';

View file

@ -29,6 +29,7 @@
elem: document.querySelector('#body'),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
value: document.getElementById("body").value
});
setupAutoResize('body');
});

View file

@ -34,6 +34,7 @@
elem: document.querySelector('#body'),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
value: document.getElementById("body").value
});
setupAutoResize('body');
});

View file

@ -34,7 +34,7 @@
elem: document.querySelector('#body'),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
value: {{ form.body.data | tojson | safe }},
value: document.getElementById("body").value
});
setupAutoResize('body');
});

View file

@ -27,7 +27,7 @@
elem: document.querySelector('#body'),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
value: {{ form.body.data | tojson | safe }}
value: document.getElementById("body").value
});
setupAutoResize('body');
});

View file

@ -35,7 +35,7 @@
elem: document.querySelector('#about'),
resize: DownArea.RESIZE_VERTICAL,
hide: ['heading', 'bold-italic'],
value: {{ form.about.data | tojson | safe }}
value: document.getElementById("about").value
});
setupAutoResize('about');
});