added InsertElementTxn
added nsEditProperty beginning of implementation for SetTextProperties. Currently, it only works if the selection is entirely within a single text node. Currently only supports bold and italic (mapped to ctrl-b and ctrl-i for testing purposes.) changed a bunch of interfaces to make things easier, like CreateElement now returns (as an out-param) the element created. git-svn-id: svn://10.0.0.236/trunk@21760 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -127,3 +127,14 @@ nsresult SplitElementTxn::GetRedoString(nsString **aString)
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult SplitElementTxn::GetNewNode(nsIDOMNode **aNewNode)
|
||||
{
|
||||
if (!aNewNode)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
if (!mNewLeftNode)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
*aNewNode = mNewLeftNode;
|
||||
NS_ADDREF(*aNewNode);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user