Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 28b09d88 authored by Laurent Montel's avatar Laurent Montel 😁

Continue to implement it

parent eb52156c
......@@ -48,9 +48,13 @@ void InsertShorturlPluginEditorInterface::slotActivated()
void InsertShorturlPluginEditorInterface::exec()
{
}
QTextCursor textCursor = richTextEditor()->textCursor();
if (textCursor.hasSelection()) {
QString urlStr = textCursor.selectedText();
if (urlStr.startsWith(QLatin1String("http:")) || urlStr.startsWith(QLatin1String("https:"))) {
//textCursor.insertText(newText);
}
}
//editorUtil.upperCase(textCursor);
//void InsertShorturlPluginEditorInterface::slotEmailSelected(const QStringList &lst)
//{
// richTextEditor()->insertPlainText(lst.join(QLatin1Char(' ')));
//}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment