• Recently i found this article wordpress-tinymce-tweaks about making tinyMCE buttons for shortcodes with popup window. This stuff is sick and working great so far but it can’t wrap selected text in shortcode.
    I know basics of how it work like:

    selected = tinyMCE.activeEditor.selection.getContent();
    	if( selected ){
            content =  '[shortcode]'+selected+'[/shortcode]';
        }else{
            content =  '[shortcode]';
    	}

    but i don’t have any idea how to include it in buttons made with that tutorial. Any ideas ?

The topic ‘TinyMCE shortcode buttons question’ is closed to new replies.