我正在用wordpress gutenberg编写一个代码块,但是wordpress显示el(没有定义?我的编辑:函数是
edit: function( props ) {
function onChange( event ) {
props.setAttributes( { author: event.target.value } );
}
return el( 'input', {
value: props.attributes.author,
onChange: onChange,
} );
},如何在我的插件中包含el支持?
发布于 2020-05-15 10:05:38
您应该首先定义包含块元素的el。
var el = element.createElement;https://stackoverflow.com/questions/55488985
复制相似问题