Closed
Bug 112960
Opened 23 years ago
Closed 2 years ago
Editor best be done when NotifyDocumentCreated is called, or else I need a NotifyDocumentReallyDone
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
INVALID
mozilla1.2beta
People
(Reporter: jelwell, Unassigned)
References
()
Details
(Whiteboard: DEPENDS)
So I want to set the default text styles in my editorshell based off some prefs. The correct way seems to be call editorShell's RegisterDocumentStateListener and in NotifyDocumentCreated I should call editorShell.SetTextProperty("i", "", ""); and other SetTextProperty calls. The only problem: When NotifyDocumentCreated is called and I set the text properties, moments later my properties are all forgotten. Simon says it's likely that some stylesheets are loaded into the editor after the NotifyDocumentCreated call is made.
Comment 1•23 years ago
|
||
Yes, we are loading style sheets that are required for editing once the page loading is completed, but NotifyDocumentCreated is called first. Interesting problem
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Comment 3•23 years ago
|
||
This problem will go away after I move the style sheet loading into the JS code as part of bug 124265; I will have more control over the order of things hopefully the editor's NotifyDocumentCreated listener will finish before any that others add. If that's not true, I'll supply a method for you to call to be sure style sheets are loaded first.
Updated•23 years ago
|
Whiteboard: DEPENDS
Comment 4•23 years ago
|
||
Unfortunately, this is going to require rewriting nsIEditorStyleSheets interface. Changing milestone.
Target Milestone: mozilla0.9.9 → mozilla1.0
Comment 5•22 years ago
|
||
Please update this bug with an [adt1] - [adt3] impact rating (or take it off the list if it doesn't even rate adt3.) Thanks!
Comment 6•22 years ago
|
||
No response from jelwell if this is criticaly, so moviving milestone out.
Target Milestone: mozilla1.0 → mozilla1.2beta
Updated•22 years ago
|
Updated•17 years ago
|
QA Contact: sujay → editor
Comment 9•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:hsinyi, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: cmanske → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(htsai)
Comment 10•2 years ago
|
||
NotifyDocumentCreated and RegisterDocumentStateListener must have been removed or rewritten as they are no longer in the latest code base.
Close as INVALID.
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(htsai)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•