use public redactor api instead of internal data attribute