using 'ck' param to check if we're in the editor