Fauxton: fix regression for document editor

Introduced with ebade0f2f82d4da60e386f4aeaf24ecb98181e81