зеркало из https://github.com/mozilla/pjs.git
Bug 482481 - Commands doesn't work on contained contentEditable elements; PromoteInlineRange checks that selection is editable; r+sr=peterv
This commit is contained in:
Родитель
cc90bdd308
Коммит
6a5955380a
|
@ -926,6 +926,7 @@ nsresult nsHTMLEditor::PromoteInlineRange(nsIDOMRange *inRange)
|
|||
|
||||
while ( startNode &&
|
||||
!nsTextEditUtils::IsBody(startNode) &&
|
||||
IsEditable(startNode) &&
|
||||
IsAtFrontOfNode(startNode, startOffset) )
|
||||
{
|
||||
res = GetNodeLocation(startNode, address_of(parent), &startOffset);
|
||||
|
@ -936,6 +937,7 @@ nsresult nsHTMLEditor::PromoteInlineRange(nsIDOMRange *inRange)
|
|||
|
||||
while ( endNode &&
|
||||
!nsTextEditUtils::IsBody(endNode) &&
|
||||
IsEditable(endNode) &&
|
||||
IsAtEndOfNode(endNode, endOffset) )
|
||||
{
|
||||
res = GetNodeLocation(endNode, address_of(parent), &endOffset);
|
||||
|
|
Загрузка…
Ссылка в новой задаче