やあ、
段落にredactorを使用して画像を追加しようとしていますが、彼は段落タグの外側に新しいFigure要素を作成します。 段落タグに配置することはできますか? https://imperavi.com/redactor/docs/settings/images/#setting -imageTagで、imageTagを設定する方法があるはずだと読みました。
私はこれを私のredactor設定でスパンするように設定しました:
{
"buttons": ["formatting", "bold", "italic", "unorderedlist", "orderedlist", "link", "image"],
"plugins": ["source", "fullscreen"],
"formatting": ["p", "h1"],
"toolbarFixed": true,
"linebreaks": true,
"imageTag": "span"
}
私がredactorフィールドに画像を追加するとき、それはまだその周りにFigureタグをラップします->
<div class="redactor-layer redactor-styles redactor-layer-img-edit redactor-in" aria-labelledby="redactor-voice-0" role="presentation" id="redactor-uuid-0" contenteditable="true" spellcheck="true" dir="ltr" style="min-height: 40px;">
<p>Test</p><figure><img src="http://localhost/uploads/content/Gear.png#asset:657"></figure>
</div>
クラフトバージョン:Craft Pro 3.0.0-RC7.1
Redactorバージョン:1.0.1
こんにちは@brandonkelly 、この問題に関する最新情報はありますか?
最も参考になるコメント
こんにちは@brandonkelly 、この問題に関する最新情報はありますか?