私は、この入力フィールドに入力していますが:入力からテキストエリアへの自動入力、テキストエリア内のテキストの折り返し?
<fieldset class="usp-title">
<label for="user-submitted-title"><?php esc_html_e('Search', 'usp'); ?></label>
<input id="user-submitted-title"
name="user-submitted-title"
type="text"
value=""
placeholder="<?php esc_attr_e('Search', 'usp'); ?>"<?php if (usp_check_required('usp_title')) echo $usp_required; ?> class="usp-input">
</fieldset>
私はそれが自動にこのフィールドに入力したいのですが、ここでのテキストは、タグによってsorroundedする必要があります。
<fieldset class="usp-content">
<?php if ($usp_options['usp_richtext_editor'] == true) { ?>
<div class="usp_text-editor">
<?php $usp_rte_settings = array(
'wpautop' => true, // enable rich text editor
'media_buttons' => true, // enable add media button
'textarea_name' => 'user-submitted-content', // name
'textarea_rows' => '10', // number of textarea rows
'tabindex' => '', // tabindex
'editor_css' => '', // extra CSS
'editor_class' => 'usp-rich-textarea', // class
'teeny' => false, // output minimal editor config
'dfw' => false, // replace fullscreen with DFW
'tinymce' => true, // enable TinyMCE
'quicktags' => true, // enable quicktags
'drag_drop_upload' => true, // enable drag-drop
);
$usp_rte_settings = apply_filters('usp_editor_settings', $usp_rte_settings);
$usp_editor_content = apply_filters('usp_editor_content', '');
wp_editor($usp_editor_content, 'uspcontent', $usp_rte_settings); ?>
</div>
<?php } else { ?>
<label for="user-submitted-content"><?php esc_html_e('Post Content', 'usp'); ?></label>
<textarea id="user-submitted-content" name="user-submitted-content" rows="5" placeholder="<?php esc_attr_e('Post Content', 'usp'); ?>"<?php if (usp_check_required('usp_content')) echo $usp_required; ?> class="usp-textarea"></textarea>
<?php } ?>
</fieldset>
第二のフィールドは、テキストを取得する必要があります[bbcode]copied from input[bbcode]
使用.keydownイベント、私が試した変数 – clearshot66
の周りにタグを追加しているときだけ、他の1つのテキストボックスから値をアップロード完了していますが、私はsuceedなかった、あなたが書くことができます私のためにコードしてください。私はコーディングがうまくいかない。 –