document provider and custom text editor draft