Add conditional structures Tinymce

if we are in a cron action there is no session