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.