gecko-dev/editor
Masayuki Nakano 43a805714a Bug 1930277 - Make nsHTMLCopyEncoder::RangeNodeContext::IncludeInContext not treat inline editing host as an contextual inline element r=edgar,dom-core
It treats some inline elements as contextual elements.  Then, they will be
preserved in copied HTML fragment.  However, if an inline element is an editing
host, we don't want to contain it to the copied fragment because pasting it
causes duplicating same style into same editing host.  So, if the style includes
relative style like `font-size: 2em`, it will cause bigger text than the
surrounding text.  Additionally, the inline editing host usually has a border
but we don't want to make it appear in editable text.

Unfortunately, with this change, we stop copying the text style specified to
the inline editing host.  However, this is same behavior as when the editing
host is a block element like `<div>`.  Note that pasted text will be merged into
the inline editing host style.  Therefore, if and only if the destination has
different style from the editing host, the result might be different from the
expected one by the user.  However, this is a long standing issue, see
bug 1428046, for example.

Differential Revision: https://phabricator.services.mozilla.com/D228623
2024-11-20 04:35:32 +00:00
..
composer Bug 1388910 - Remove -moz-user-modify property. r=dshin 2024-11-19 19:35:35 +00:00
docs
libeditor Bug 1930277 - Make nsHTMLCopyEncoder::RangeNodeContext::IncludeInContext not treat inline editing host as an contextual inline element r=edgar,dom-core 2024-11-20 04:35:32 +00:00
reftests Bug 1879538 - cleanup unnecessary and redundant reftest conditions. r=aryx,jgilbert 2024-02-22 23:04:45 +00:00
spellchecker Bug 1925889 - Get rid of GetPersonalDictionary and GetPersonalDictionaryWord from nsIEdiorSpellCheck. r=masayuki 2024-10-28 07:43:30 +00:00
txmgr
AsyncSpellCheckTestHelper.sys.mjs Bug 1864896: Autofix unused function arguments (editor). r=masayuki 2024-03-01 18:28:33 +00:00
moz.build
nsIDocumentStateListener.idl
nsIEditActionListener.idl Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
nsIEditor.idl Bug 1809713 - Use ClipboardType in editor. r=masayuki 2024-07-29 11:52:33 +00:00
nsIEditorMailSupport.idl
nsIEditorSpellCheck.idl Bug 1925889 - Get rid of GetPersonalDictionary and GetPersonalDictionaryWord from nsIEdiorSpellCheck. r=masayuki 2024-10-28 07:43:30 +00:00
nsIHTMLAbsPosEditor.idl Bug 1920647 - part 1: Make HTMLEditor won't show Gecko specific editing UI in contenteditable=plaintext-only r=m_kato 2024-10-01 04:21:54 +00:00
nsIHTMLEditor.idl Bug 1922457 - Get rid of editor.block_inline_check.use_computed_style pref r=m_kato 2024-10-07 23:05:15 +00:00
nsIHTMLInlineTableEditor.idl Bug 1920647 - part 1: Make HTMLEditor won't show Gecko specific editing UI in contenteditable=plaintext-only r=m_kato 2024-10-01 04:21:54 +00:00
nsIHTMLObjectResizer.idl Bug 1920647 - part 1: Make HTMLEditor won't show Gecko specific editing UI in contenteditable=plaintext-only r=m_kato 2024-10-01 04:21:54 +00:00
nsITableEditor.idl