jin-yufeng / mp-html

小程序富文本组件,支持渲染和编辑 html,支持在微信、QQ、百度、支付宝、头条和 uni-app 平台使用
https://jin-yufeng.gitee.io/mp-html
MIT License
3.28k stars 480 forks source link

mpvue中使用parser插件抛错 #175

Closed haryzxw closed 4 years ago

haryzxw commented 4 years ago

使用平台

微信

问题描述

按照mpvue的使用步骤,将parser包添加到static下,并在.json文件做了配置,在.vue中使用的时候,抛了截图的错误,有空能帮我看看嘛~ image

html 代码
image image image

jin-yufeng commented 4 years ago

确定放在 static 目录下了么,试试这个 mpvue-demo.zip

haryzxw commented 4 years ago
        嗯嗯,谢谢~我试试看

                            郑晓雯

                                邮箱:hary@cingta.com

    签名由 网易邮箱大师 定制

        在2020年07月23日 20:01,jin-yufeng 写道: 

确定放在 static 目录下了么,试试这个 mpvue-demo.zip

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

[

{

"@context": "http://schema.org",

"@type": "EmailMessage",

"potentialAction": {

"@type": "ViewAction",

"target": "https://github.com/jin-yufeng/Parser/issues/175#issuecomment-662966745",

"url": "https://github.com/jin-yufeng/Parser/issues/175#issuecomment-662966745",

"name": "View Issue"

},

"description": "View this Issue on GitHub",

"publisher": {

"@type": "Organization",

"name": "GitHub",

"url": "https://github.com"

}

}

]

haryzxw commented 4 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

你好,这个插件对mpvue的版本有要求,我跑了你给的demo,是可以正常渲染的。但是我自己项目里还是没办法渲染,mpvue的版本为:1.0.6;你的demo版本:2.0.0项目使用截图如下:望回复~

在2020年07月23日 20:01,jin-yufeng<notifications@github.com> 写道: 

确定放在 static 目录下了么,试试这个 mpvue-demo.zip

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

jin-yufeng commented 4 years ago

这是 1.0.6demo.zip,我感觉的差别就是 1.0.6 好像不会自动把 src 目录下 page 中的 json 拷贝到 dist 中,需要直接添加到 dist 中去,其他好像没啥差别

haryzxw commented 4 years ago
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

嗯嗯,感谢百忙之中回复!我再用你demo试试看我本来也是想实在不行就把mpvue升级到2.0.0或者直接套用你的demo包本来项目最开始使用的是微信rich-text,但当时好像不支持表格合并单元格的情况(colspan、rowspan等属性)后来改用mpvue-wxparse,但这个插件在富文本内容多的时候,就容易造成小程序的假死卡顿,很无奈现在就想尝试使用你写的这个框架~
希望顺利,祝你一切安好!

                            郑晓雯

                                hary@cingta.com

    签名由
    网易邮箱大师
    定制

在2020年07月24日 16:06,jin-yufeng<notifications@github.com> 写道: 

这是 1.0.6 的 demo.zip,我感觉的差别就是 1.0.6 好像不会自动把 src 目录下 page 中的 json 拷贝到 dist 中,需要直接添加到 dist 中去,其他好像没啥差别

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.