Add virtual BCodeEditor::createDocument() method