Update maxChars. Set it from attribute or data.