<script>
    function placeVariable(variable){
        event.preventDefault();
        tinymce.init({ selector:'textarea.editable' });
        //tinymce.activeEditor.execCommand('mceInsertContent', false, "["+variable+"]");
        tinymce.activeEditor.execCommand('mceInsertContent', false, variable);
    }
</script>