Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem win Rich Text Editor and Firefox

$
0
0
Hi, I have a problem in my application when I have a form with a Rich Text Editor and I use Firefox.

I have spent several hours and I have not been able to reproduce the issue using a simplified example, so I think the problem is somehow in a deep level in the Firefox engine.

The problem is in this line of RichTextCanvas.js

Code:

if (isc.Browser.isMoz) cDoc.execCommand("readonly", false, editable);
It raises a NS_ERROR_FAILURE

I have been investigating, and it seems that is a known issue in other frameworks using htmlEditor and Firefox.

For example: http://www.sencha.com/forum/showthre...dden-Container


Now, since you have already all the others "execCommand" calls surrounded within a try / catch, for example, in the same RichTextCanvas.js

Code:

        try {
            doc.execCommand(command, false, valueString);
        } catch (e) {
            return false;
        }


could you please surround in a try / catch statement also the

Code:

if (isc.Browser.isMoz) cDoc.execCommand("readonly", false, editable);
¿?


Thank you in advance

Viewing all articles
Browse latest Browse all 4756

Trending Articles