1. Home
  2. Docs
  3. TinyMCEv5
  4. init初始化
  5. menu-選單

menu-選單

[code]
<!DOCTYPE html>
<html lang="en">
<head>
<!–
<script src="https://cdn.tiny.cloud/1/mott8ilewgbu1tryzfu9q7sdcmn5qfqt19jixbvaqgaz6kjc/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
–>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<script src="../../../../../system/libs/tinymce/js/tinymce/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector : ‘#richTextArea_www_powenko_com’,
menu: {
file: { title: ‘柯博文檔案’, items: ‘newdocument restoredraft | preview | print ‘ },
edit: { title: ‘Edit’, items: ‘undo redo | cut copy paste | selectall | searchreplace’ },
view: { title: ‘View’, items: ‘code | visualaid visualchars visualblocks | spellchecker | preview fullscreen’ },
insert: { title: ‘Insert’, items: ‘image link media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime’ },
format: { title: ‘Format’, items: ‘bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | removeformat’ },
tools: { title: ‘Tools’, items: ‘spellchecker spellcheckerlanguage | code wordcount’ },
table: { title: ‘Table’, items: ‘inserttable | cell row column | tableprops deletetable’ },
help: { title: ‘Help’, items: ‘help’ }
}

});
</script>
</head>
<body>
<textarea id="richTextArea_www_powenko_com"></textarea>
www.popwenko.com
</body>
</html>
[/code]

[code]
<script>
tinymce.init({
selector : ‘#richTextArea_www_powenko_com’,
menubar: ‘file edit insert view format table tools help ‘,
//menubar: false,
});
</script>
[/code]