Closed Bug 223849 Opened 22 years ago Closed 22 years ago

designMode is set to 'on' but function says that is 'off'

Categories

(Core :: DOM: Editor, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: d.oliveira, Assigned: mozeditor)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915 Editor designMode is set to 'on'.. When we try to set fontsize to 7, function says that designMode is 'off' and execCommand fails. Reproducible: Always Steps to Reproduce: 1. Open page 2. Check if we can edit iframe content 3. Click button 4. Check if message appears Actual Results: A message appears saying that designMode is 'off' Expected Results: Dont show message because designMode is 'on'
I suspect enable_designmode() is being called before the <iframe>'s document has been created... does calling it from onload help?
Yes! Problem solved..! I am very sorry about the fact that I made you waste your time on this. I increased timeout value from 10 to 100 and it's working.. Inserting enable_designmode on onLoad is a very good way that I never thought of. Thanks again. Best regards.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
reopening as no specific patch fixed this issue, to mark WFM
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
wfm
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.