-1
Whoops, anyone knows how to add option to add or in ckeditor or tinymce, options similar to this:
Adding the iframe of a social network, the embed block goes directly to the body of the editor.
I managed to insert a custom button in Tinymce, when clicking on it a modal is opened, from there inserted in the body of the editor, but, I could not add more than one button, as I can add more than one button in Tinymce?
<head>
<script src="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>
In the documentation of plugin there is no information on how to add custom buttons?
– Renan Gomes
Take a look at the ckeditor Adons, I found this to embed Youtube http://ckeditor.com/addon/youtube
– rodorgas