WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
70823
Using the EditorCommand InsertText with spaces destroys the style.
https://bugs.webkit.org/show_bug.cgi?id=70823
Summary
Using the EditorCommand InsertText with spaces destroys the style.
Mike Fenton
Reported
2011-10-25 10:16:36 PDT
Created
attachment 112353
[details]
Test to validate insertion. Attempting to insert text using the InsertTextCommand code destroys the style of the selection if a space exists. From InsertTextCommand::doApply // FIXME: This delete operation blows away the typing style. if (endingSelection().isRange()) { if (performTrivialReplace(m_text, m_selectInsertedText)) return; deleteSelection(false, true, true, false); } The selection is deleted if a trivial replacement cannot be done. From InsertTextCommand::performTrivialReplace if (text.contains('\t') || text.contains(' ') || text.contains('\n')) return false; Trivial replacement only occurs when none of the above characters are present.
Attachments
Test to validate insertion.
(3.20 KB, patch)
2011-10-25 10:16 PDT
,
Mike Fenton
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug