Fixed content replacement in wysiwyg view by using DOM directly.