close
<script type="text/javascript" src="<yourinstallationpath>/tinymce/tinymce.min.js"></script>
<scripttype="text/javascript">
tinymce.init({
selector:"textarea",
toolbar:"mybutton",
setup:function(editor){
editor.addButton('mybutton',{
text:'My button',
icon:false,
onclick:function(){
editor.insertContent('Main button');
}
});
}
});
</script>
<formmethod="post"action="somepage">
<textareaname="content"style="width:100%"></textarea>
</form>
全站熱搜
留言列表