pass g2 rest API requests directly from tinymce plugin