自定义组件问题
$type = 'mavon-editor'; $editor = new CustomComponent($type); $editor->setField('markdown')->setTitle('文章内容')->setValue('# 标题');
报错 setField方法不存在, 这块不是很明白
文档写错了,应该是field('markdown')
好的。谢谢
在2020年09月08日 10:14,xaboy 写道: 文档写错了,应该是field('markdown')
—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/xaboy/form-builder/issues/57#issuecomment-688578010", "url": "https://github.com/xaboy/form-builder/issues/57#issuecomment-688578010", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]