Hi Kjetil,
Please take a look at this sample.I have implemented your requirement with the NodeEditorValidateString event and it would not allow more than 8 characters. I hope this sample will fulfill your request. Please let me know if you have any questions regarding this sample.
Thanks
Vijay
EditorValidating_2484.zip