Oops, anyone know how I can add option to add or in ckeditor or tinymce, options similar to this:
Byaddingtheiframeofasocialnetwork,theembeddingblockgoesdirectlytotheeditor'sbody.
IwasabletoinsertacustombuttoninTinyMCE,byclickingonitamodalisopened,fromthereinsertedintheeditorbody,but,Icouldnotaddmorethanonebutton,howcanIaddmorethanonebuttoninTinyMCE?
<head><scriptsrc="http://cdn.tinymce.com/4/tinymce.min.js"></script>
<script>
tinymce.init({
selector: 'textarea#textarea_content',
height: 500,
toolbar: 'mybutton',
menubar: false,
setup : function(editor)
{
editor.addButton('mybutton', {
text: 'My button',
icon: false,
onclick: function () {
editor.windowManager.open({
title: 'Example plugin',
body: [
{type: 'textbox', name: 'title', label: 'Title'}
],
onsubmit: function(e) {
editor.insertContent(e.data.title);
}
});
}
});
}
});
</script>
</head>
<body>
<textarea id="textarea_content" cols="85" rows="10"></textarea>
</body>