1. Home
  2. Docs
  3. TinyMCEv5
  4. init初始化
  5. init_instance_callback 初始化結束

init_instance_callback 初始化結束

[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’,

plugins: ‘hr help ‘,
toolbar: ‘hr | help ‘,
init_instance_callback : function(editor) {
console.log(‘Editor: ‘ + editor.id + ‘ is now initialized.’);
}

});

</script>
</head>
<body>
www.popwenko.com
<textarea id="richTextArea"></textarea>
</body>
</html>
[/code]