DEV: Extract textarea text manipulation to mixin (PR #14201)

GitHub