fix #1693 searchbox is broken when creating ace in pre tag