TinyMCE Plugin

Pulldown needs to be renderd as html

by allcaps

HTML

<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>
<textarea>

JavaScript

tinymce.PluginManager.add('foo', function (editor, url) {
    editor.addButton('foo', {
        title: 'Label for plugin button',
        text: 'Plugin button text',
        type: 'button',
        onclick: function () {
            editor.windowManager.open({
                title: 'Some title',
                width: 300,
                height: 200,
                body: [{
                    type: 'listbox',
                    label: 'Some label',
                    name: 'foo',
                    values: [{
                        text: 'Choose an item',
                        value: ""
                    }, {
                        text: '<em>Foo</em>', // <--- Render HTML please.
                        value: 'foo'
                    }]
                }]
            });
        }
    });
});

tinymce.init({
    selector: 'textarea',
    plugins: ['foo'],
    toolbar: "foo"

});