gecko-dev/editor
Aryeh Gregor 47530382e3 Bug 1353695 - Sometimes Enter is ignored in editor; r=masayuki
When defaultParagraphSeparator is not "br", and we hit Enter on a line
that is not contained in any block element, we first create a new <div>
(or <p>) wrapper to hold the line's contents.  If creating this wrapper
fails for some reason, we go ahead and insert a <br> instead.

In some cases, we would get confused and think we didn't create the
block element when really we did.  We would insert a <br>, and
afterwards something would get rid of the empty block element.  In a
corner case where the line only consisted of a <br> to start with, this
would result in nothing happening, because the original <br> was removed
when creating the block element, and only one <br> was inserted to
replace it.

The correct fix is to just not get confused!

MozReview-Commit-ID: 1U8KHC71bfw

--HG--
extra : rebase_source : 50640615a3a652c3a74c1aef5412eb82daf8c5fb
2017-04-05 20:40:13 +03:00
..
composer Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki 2017-04-13 16:17:03 +08:00
libeditor Bug 1353695 - Sometimes Enter is ignored in editor; r=masayuki 2017-04-05 20:40:13 +03:00
reftests Bug 1350140: more test expectation updates. r=heycam 2017-03-28 15:01:34 +02:00
txmgr Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
txtsvc Bug 1330912 - Part 1. Add async version of SetCurrentDictionary using list. r=Ehsan 2017-04-10 18:29:16 +09:00
AsyncSpellCheckTestHelper.jsm Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
moz.build Bug 1351074 - Part 1. AsyncSpellCheckTestHelper.jsm should not be shipped. r=masayuki 2017-03-31 14:17:26 +09:00
nsEditorCID.h
nsIContentFilter.idl
nsIDocumentStateListener.idl
nsIEditActionListener.idl
nsIEditor.idl Bug 1349178 Make nsIEditor.transactionManager readonly r=m_kato 2017-03-21 20:57:15 +09:00
nsIEditorIMESupport.idl Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug 2016-12-20 21:47:31 +09:00
nsIEditorMailSupport.idl Bug 1272893 - Remove nsISupportsArray from GetEmbeddedObjects() in editor. r=masayuki 2016-09-15 04:33:00 +02:00
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIEditorStyleSheets.idl Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert 2016-02-24 18:01:12 +11:00
nsIEditorUtils.idl Bug 1259517 - Make dropping images in editors work in e10s. r=baku 2016-06-21 15:17:37 -07:00
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1312991 Get rid of nsIHTMLEditor::SetDocumentTitle() and mozilla::SetDocumentTitleTransaction r=smaug 2016-12-26 17:46:23 +09:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl Bug 1349426 - Remove nsIHTMLObjectResizeListener. r=masayuki 2017-03-27 15:16:40 +09:00
nsIPlaintextEditor.idl
nsITableEditor.idl
nsIURIRefObject.idl
nsPIEditorTransaction.idl