xhEditor demo5 : Javascript API交互




focus() | setSource('<p>aaa1</p>') | $('#elm1').val('<p>aaa2</p>') | getSource() | $('#elm1').val() | appendHTML('<strong>添加在尾部</strong>') | getSelect() | getSelect('text') | pasteHTML('<strong>粘贴的内容</strong>') | pasteText('<strong>粘贴的内容</strong>') | formatXHTML('<b>abc</b>') | toggleSource() | toggleSource(true) | toggleFullscreen(true) | toggleShowBlocktag() | alert(settings.upLinkExt) | exec('About')