Recently when the project encountered a Baidu artifact: Editor Rich Text Editor. But also encountered a lot of compatibility issues, now write a short essay to share:
First: In Firefox, the Edit Function button in the Editor section cannot be displayed
As you can see, only the edit box is displayed in Firefox and the Edit button is missing. (However, the reason why the IE7,IE8 cannot be displayed is that the anonymous () method is blocked in the new version and can be corrected by modifying the Ewebeditor JS file)
Solution: Open Firefox---toolbars--tools--add attachments, use the search function to search for "IE tab" components, and restart after installation.
Second: In Firefox, when this page reads the value in the database, the editor box does not have the values read in the database
In the Firefox browser, the rendering and assignment of this editor is usually not separate, as long as a separate will appear unexpected error, in this editor's JS file will be error, resulting in the page of other JS files will not be executed, there will be a mistake should not appear
Solution: Attach Picture Bar
The first thing to do is to separate the rendering and assignment of this editor:
The second is to try...catch the method of submitting the button
This resolves the values in the database that could not be read in Firefox.
This is obviously not the best solution, look at the way the great God advice!
Baidu Editor Rich Text editor compatibility in Firefox browser