hooks to support richtext