close
function textbox() {
var ctl = document.getElementById('tt');
var tt = $('#tt').val();
var startPos = ctl.selectionStart;
var a = $('#tt').val().substr(0, startPos);
var b = $('#tt').val().substr(startPos, tt.length);
alert(a + '**' + b);
}
tinymce.activeEditor.execCommand('mceInsertContent',false,"some text");
全站熱搜
留言列表