Make sure that the style menu shows the right style name for code and quote.
Also when in quote mode the valid styles are now transformed to how they look in quote to show they are valid. Clicking quote style again in a quote block will return to paragrpah style from heading now
This commit is contained in:
@@ -430,7 +430,7 @@ void ChatBarMessageContentModel::insertStyleAtCursor(RichFormat::Format style)
|
||||
void ChatBarMessageContentModel::insertComponentAtCursor(MessageComponentType::Type type)
|
||||
{
|
||||
if (m_components[m_currentFocusComponent.row()].type == type) {
|
||||
if (type == MessageComponentType::Text && focusedTextItem()) {
|
||||
if ((type == MessageComponentType::Text || type == MessageComponentType::Quote) && focusedTextItem()) {
|
||||
focusedTextItem()->mergeFormatOnCursor(RichFormat::Paragraph);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user