0

ダイアログウィンドウのイベントでCKEditorspanのタグ内に作成する必要があります。次のコードを試しましたが、うまくいきません。divonclick

link = editor.document.createElement( 'div' );
this.commitContent( data );
link.setAttribute('itemscope','');
link.setAttribute( 'itemtype', 'http://schema.org/Person' );
link.setAttribute( 'id', 'person' );
link1 = editor.document.createElement( 'span' );
document.getElementById("person").appendChild(link1);
link1.setAttribute( 'itemprop', data.prop );
4

1 に答える 1