%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/cargonizer/public_html/admin/assets/plugins/tinymce/js/tinymce/plugins/grid/
Upload File :
Create Path :
Current File : /home/cargonizer/public_html/admin/assets/plugins/tinymce/js/tinymce/plugins/grid/plugin.js

tinymce.PluginManager.add('grid', function(editor, url) {
    // Add a button that opens a window
    editor.addButton('grid', {
        text: 'Grid',
        icon: false,
        onclick: function() {
            // Open window
            editor.windowManager.open({
                title: 'Grid',
                body: [
                    {type: 'grid', name: 'grid', label: 'Grid'}
                ],
                onsubmit: function(e) {
                    // Insert content when the window form is submitted
                    editor.insertContent('Title: ' + e.data.title);
                }
            });
        }
    });

    // Adds a menu item to the tools menu
    editor.addMenuItem('grid', {
        text: 'Grid',
        context: 'tools',
        onclick: function() {
            // Open window with a specific url
            editor.windowManager.open({
                title: 'TinyMCE site',
                url: 'http://www.tinymce.com',
                width: 800,
                height: 600,
                buttons: [{
                    text: 'Close',
                    onclick: 'close'
                }]
            });
        }
    });
});

Zerion Mini Shell 1.0