josdejong/jsoneditor

Cannot paste styled/colored contents in Tree mode

开放

#1,259 创建于 2021年3月3日

 (10 条评论) (0 个反应) (0 位负责人)JavaScript (2,078 个派生)batch import
bughelp wanted

仓库指标

星标
 (12,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

In the tree mode, after paste plain text in fields, the pasted text was wrapped by a 'span' element and it cause the text cannot be selected or insert cursor. Atfer tesing several versions, I found the problem happens since version 8.6.7, previous version works fine.

<div contenteditable="true" spellcheck="false" class="jsoneditor-value jsoneditor-string jsoneditor-color-value" title>
    <span>gold</span>
</div>

贡献者指南