josdejong/jsoneditor

Cannot paste styled/colored contents in Tree mode

Open

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

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)JavaScript (2,034 fork)batch import
bughelp wanted

仓库指标

Star
 (10,781 star)
PR 合并指标
 (平均合并 15小时 36分钟) (30 天内合并 3 个 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>

贡献者指南