This tinyMCE Editor error is from BOM

Yesterday, the tinyMCE editor in the websit can’t work suddenly. I solved this problem until today. It is from BOM with the file. Once BOM is removed, every thing is OK.

A UTF-8 file may have BOM, may not. The methods as below can distinguish it:

1, open the file with UltraEdit-32, switch to hex edit mode, and see whether the header has EF BB BF.
2, using Dreamweaver to open the file, in “Page Properties” page, check if the space before “including Unicode signature (BOM) ” is checked.

For the second method, if it’s checked, remove the check and save it. Then it will be fine.

I also found that, if the code between and has error, even a simple first line ( i.e. var xx = 0;) actually doesn’t take effect. It’s against my coding experience about javascript.

Some users can’t use this tinyMCE editor of this website, but others can. I hope that this change can solve this problem too and this tinyMCE editor can work well for all the users. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *