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)