mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: editor auto-resize
This commit is contained in:
1 parent
0c5f941203
commit
6c0c2c5bf1
4 files changed
+42
-17
No files matched your search
@@ -9,7 +9,7 @@
|
||||
<div class="medium-7 columns">
|
||||
<label>
|
||||
{{ _('Title') }}
|
||||
<input name="title" placeholder="{{ _('title') }}" value="{{ pdoc['title']|default('') }}" class="textbox" autofocus>
|
||||
<input name="title" placeholder="{{ _('title') }}" value="{{ pdoc['title']|default('') }}" class="textbox"{% if page_name == 'problem_create' %} autofocus{% endif %}>
|
||||
</label>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
@@ -49,7 +49,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div><textarea data-editor class="nojs--hide"></textarea></div>
|
||||
<div><textarea data-editor{% if page_name == 'problem_edit' %} autofocus{% endif %} class="textbox auto-resize nojs--hide"></textarea></div>
|
||||
<textarea name="content" class="textbox hasjs--hide" data-markdown-upload style="height: 500px">{% if pdoc %}{{ pdoc['content']|toString }}{% else %}{% include 'partials/problem_default.md' %}{% endif %}</textarea>
|
||||
<div class="row"><div class="columns">
|
||||
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
|
||||
|
||||
Reference in new issue
Block a user