Fix(frontend): ほとんどのMkTextareaでMFMプレビューが表示されてしまっている問題を修正 (#12672)
* ほとんどのMkTextareaでMFMのプレビューが表示されてしまっている不具合を修正 * refactor * そもそも #12130 でプロフィールはnyaizeされない仕様にもどっていたらしいので修正
This commit is contained in:
		@@ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
			:readonly="readonly"
 | 
			
		||||
			:placeholder="placeholder"
 | 
			
		||||
			:pattern="pattern"
 | 
			
		||||
			:autocomplete="autocomplete"
 | 
			
		||||
			:autocomplete="props.autocomplete"
 | 
			
		||||
			:spellcheck="spellcheck"
 | 
			
		||||
			@focus="focused = true"
 | 
			
		||||
			@blur="focused = false"
 | 
			
		||||
@@ -26,8 +26,8 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
		></textarea>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div :class="$style.caption"><slot name="caption"></slot></div>
 | 
			
		||||
	<button style="font-size: 0.85em;" class="_textButton" type="button" @click="preview = !preview">{{ i18n.ts.preview }}</button>
 | 
			
		||||
	<div v-show="preview" v-panel :class="$style.mfmPreview">
 | 
			
		||||
	<button v-if="mfmPreview" style="font-size: 0.85em;" class="_textButton" type="button" @click="preview = !preview">{{ i18n.ts.preview }}</button>
 | 
			
		||||
	<div v-if="mfmPreview" v-show="preview" v-panel :class="$style.mfmPreview">
 | 
			
		||||
		<Mfm :text="v"/>
 | 
			
		||||
	</div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
		<template #label>{{ i18n.ts._profile.name }}</template>
 | 
			
		||||
	</MkInput>
 | 
			
		||||
 | 
			
		||||
	<MkTextarea v-model="profile.description" :max="500" tall manualSave mfmAutocomplete :mfmPreview="true" :nyaize="$i?.isCat ? 'respect' : undefined" :author="($i as Misskey.entities.UserLite)">
 | 
			
		||||
	<MkTextarea v-model="profile.description" :max="500" tall manualSave mfmAutocomplete :mfmPreview="true">
 | 
			
		||||
		<template #label>{{ i18n.ts._profile.description }}</template>
 | 
			
		||||
		<template #caption>{{ i18n.ts._profile.youCanIncludeHashtags }}</template>
 | 
			
		||||
	</MkTextarea>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user