Open
Bug 132700
Opened 23 years ago
Updated 4 years ago
Editor embedding: nsIEditingSession::MakeEditable should have options for nested iframes
Categories
(Core :: DOM: Editor, defect, P5)
Core
DOM: Editor
Tracking
()
NEW
mozilla1.0.1
People
(Reporter: sfraser_bugs, Unassigned)
References
(Blocks 1 open bug)
Details
Currently, nsIEditingSession::MakeEditable() only makes a single <iframe>
editable. It needs to take a parameter that indicates whether the caller wants
all nested <iframes> to become editable also (e.g. if loading a frameset page).
The implementation would look something like:
nsCOMPtr<nsISimpleEnumerator> docShellEnumerator;
docShell->GetDocShellEnumerator( nsIDocShellTreeItem::typeContent,
nsIDocShell::ENUMERATE_FORWARDS,
getter_AddRefs(docShellEnumerator));
if (docShellEnumerator)
{
PRBool hasMore;
while (NS_SUCCEEDED(docShellEnumerator->HasMoreElements(&hasMore)) &&
hasMore)
{
nsCOMPtr<nsISupports> curSupports;
rv = docShellEnumerator->GetNext(getter_AddRefs(curSupports));
if (NS_FAILED(rv)) break;
nsCOMPtr<nsIDocShell> curShell = do_QueryInterface(curSupports, &rv);
if (NS_FAILED(rv)) break;
nsCOMPtr<nsIDOMWindow> childWindow = do_GetInterface(curShell,&rv);
if (childWindow)
editingSession->MakeWindowEditable(childWindow, PR_FALSE);
}
}
Updated•23 years ago
|
QA Contact: mdunn → depstein
Comment 2•22 years ago
|
||
changing component so this shows up in Syd's editor embedding queries
Component: Embedding: APIs → Editor: Core
Updated•22 years ago
|
QA Contact: depstein → dsirnapalli
Updated•18 years ago
|
QA Contact: dsirnapalli → editor
Updated•18 years ago
|
Assignee: mjudge → nobody
Status: ASSIGNED → NEW
Comment 3•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•