mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
1 parent
89b294c60e
commit
f45a509c05
5 files changed
+8
-3
No files matched your search
@@ -16,6 +16,7 @@ export default function DataInputComponent(props) {
|
||||
className="scratchpad__data-input"
|
||||
style={{ overflowY: 'scroll' }}
|
||||
wrap="off"
|
||||
spellCheck="false"
|
||||
>
|
||||
{/* eslint-disable-next-line react/no-danger */}
|
||||
<pre dangerouslySetInnerHTML={{ __html: value }} contentEditable />
|
||||
@@ -24,6 +25,7 @@ export default function DataInputComponent(props) {
|
||||
<textarea
|
||||
className="scratchpad__data-input"
|
||||
wrap="off"
|
||||
spellCheck="false"
|
||||
value={value}
|
||||
onChange={(ev) => {
|
||||
ev.stopPropagation();
|
||||
|
||||
@@ -172,6 +172,7 @@
|
||||
|
||||
{% macro textarea(args) %}
|
||||
{% set markdown = args.markdown or false %}
|
||||
{% set nospellcheck = args.nospellcheck or false %}
|
||||
<div
|
||||
name="form_item_{{ args.name }}"
|
||||
{{ container_attr('textarea-container', args) }}
|
||||
@@ -180,6 +181,7 @@
|
||||
name="{{ args.name }}"
|
||||
placeholder="{{ args.placeholder }}"
|
||||
{% if markdown %}data-markdown{% endif %}
|
||||
{% if nospellcheck %}spellcheck="false"{% endif %}
|
||||
{{ form_attr('textbox', args) }}
|
||||
>{{ args.value }}</textarea>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
{{ form.form_textarea({
|
||||
columns:null,
|
||||
label:'Users',
|
||||
name:'users'
|
||||
name:'users',
|
||||
nospellcheck: true
|
||||
}) }}
|
||||
<div class="row"><div class="column">
|
||||
<button name="preview" class="rounded primary button">{{ _('Preview') }}</button>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="section__body">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{{ form.form_textarea({label:'Input', columns:12, name:'input', extra_class:'monospace', autofocus:true}) }}
|
||||
{{ form.form_textarea({label:'Input', columns:12, name:'input', extra_class:'monospace', autofocus:true, nospellcheck:true}) }}
|
||||
<div class="row">
|
||||
<div class="medium-12 columns">
|
||||
<p>{{ _('Or upload a file:') }} <input type="file" name="file"></p>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}) }}
|
||||
</div>
|
||||
<div class="row nojs--hide" id="codelang-selector"></div>
|
||||
{{ form.form_textarea({label:'Code', columns:12, name:'code', extra_class:'monospace', autofocus:true}) }}
|
||||
{{ form.form_textarea({label:'Code', columns:12, name:'code', extra_class:'monospace', autofocus:true, nospellcheck:true}) }}
|
||||
<div class="row">
|
||||
<div class="medium-12 columns">
|
||||
<p>{{ _('Or upload a file:') }} <input type="file" name="file"></p>
|
||||
|
||||
Reference in new issue
Block a user