mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-06 12:43:53 +00:00
partial fix for 85963 (add alt tag for images inserted via d&d from OS)
This commit is contained in:
parent
13421beafe
commit
285a89a3cb
@ -624,7 +624,7 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromTransferable(nsITransferable *transferable
|
||||
{
|
||||
stuffToPaste.AssignWithConversion ( "<IMG src=\"", 10);
|
||||
stuffToPaste.AppendWithConversion ( urltext, len );
|
||||
stuffToPaste.AppendWithConversion ( "\">" );
|
||||
stuffToPaste.AppendWithConversion ( "\" alt=\"\" >" );
|
||||
}
|
||||
else /* insert as link */
|
||||
{
|
||||
|
@ -624,7 +624,7 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromTransferable(nsITransferable *transferable
|
||||
{
|
||||
stuffToPaste.AssignWithConversion ( "<IMG src=\"", 10);
|
||||
stuffToPaste.AppendWithConversion ( urltext, len );
|
||||
stuffToPaste.AppendWithConversion ( "\">" );
|
||||
stuffToPaste.AppendWithConversion ( "\" alt=\"\" >" );
|
||||
}
|
||||
else /* insert as link */
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user