xhEditor demo5 : Javascript交互




focus(); | setSource('<p>aaa</p>'); | getSource(); | appendHTML('<strong>添加在尾部</strong>'); | getSelect(); | getSelect('text'); | pasteHTML('<strong>粘贴的内容</strong>'); | pasteText('<strong>粘贴的内容</strong>'); | formatXHTML('<b>abc</b>'); | toggleSource(); | toggleSource(true); | togglePreview(true); | toggleFullscreen(true); | toggleReadonly(); | toggleShowBlocktag(); | alert(settings.upLinkExt)