Baidu Editor Rich Text editor compatibility in Firefox browser

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.