Skip to content

JSON格式的内容怎么正常显示 #1684

Closed
@wzbbdsj

Description

@wzbbdsj

var json = editor.txt.getJSON() // 获取 JSON 格式的内容
var jsonStr = JSON.stringify(json)
获取的内容存到数据库中,读取的时候怎么初始化内容呢?

Activity

IVANLEE99

IVANLEE99 commented on Sep 4, 2018

@IVANLEE99

递归set?

jun1362008

jun1362008 commented on Nov 26, 2018

@jun1362008

同问,难道得自己处理格式初始化么

1039919361

1039919361 commented on Jan 6, 2020

@1039919361

有没有好的解决办法?现在json格式的内容直接展示在富文本上边 有没有知道的???

1039919361

1039919361 commented on Jan 6, 2020

@1039919361

让他展示在框框里面也可以啊!

UltramanWeiLai

UltramanWeiLai commented on Sep 23, 2020

@UltramanWeiLai
Contributor

其实循环json生成dom片段是一件很容易的事情
已记录该问题,会安排在 V4 版本中解决,感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wzbbdsj@jun1362008@IVANLEE99@UltramanWeiLai@1039919361

        Issue actions

          JSON格式的内容怎么正常显示 · Issue #1684 · wangeditor-team/wangEditor