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)

x86
All
defect
Not set
normal

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.
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
moving milestone
Target Milestone: mozilla0.9.8 → mozilla0.9.9
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.
Depends on: 124265
Keywords: nsbeta1+
Whiteboard: DEPENDS
Unfortunately, this is going to require rewriting nsIEditorStyleSheets interface.
Changing milestone.
Target Milestone: mozilla0.9.9 → mozilla1.0
Please update this bug with an [adt1] - [adt3] impact rating (or take it off the
list if it doesn't even rate adt3.)  Thanks!
No response from jelwell if this is criticaly, so moviving milestone out.
Target Milestone: mozilla1.0 → mozilla1.2beta
marking nsbeta1- per ADT.
Keywords: nsbeta1+nsbeta1-
Keywords: nsbeta1-nsbeta1
adt: nsbeta1-
Keywords: nsbeta1nsbeta1-
QA Contact: sujay → editor

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)

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.