Improve BCodeEditor documents merging