Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview方法可选参数options.transform提示undefined错误的问题 #329

Closed
ydq opened this issue Apr 19, 2020 · 1 comment
Closed
Assignees
Milestone

Comments

@ydq
Copy link

ydq commented Apr 19, 2020

编辑模式

vditor @ 3.1.12

独立渲染方法 Vditor.preview

描述问题

//这样报错:Cannot read property 'transform' of undefined
Vditor.preview(document.body,'# hello vditor')
//必须要添加transform参数才行,但是文档中给出的options和transform都是可选的
Vditor.preview(document.body,'# hello vditor',{
    transform:''
})

期待的结果

可选参数支持不传入

Vditor.preview(document.body,'# hello vditor')
@Vanessa219
Copy link
Owner

看错了

@Vanessa219 Vanessa219 reopened this Apr 19, 2020
@Vanessa219 Vanessa219 self-assigned this Apr 19, 2020
@Vanessa219 Vanessa219 added this to the 3.1.0 milestone Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants