Paste raw HTML

This commit is contained in:
M66B 2022-11-24 20:29:48 +01:00
parent 3db4d5c52a
commit 28cc7da86f
1 changed files with 2 additions and 5 deletions

View File

@ -518,15 +518,12 @@ public class EditTextCompose extends FixedEditText {
ClipData.Item item = cbm.getPrimaryClip().getItemAt(0);
final String html;
String h = (raw ? null : item.getHtmlText());
String h = item.getHtmlText();
if (h == null) {
CharSequence text = item.getText();
if (text == null)
return false;
if (raw)
html = text.toString();
else
html = "<div>" + HtmlHelper.formatPlainText(text.toString(), false) + "</div>";
html = "<div>" + HtmlHelper.formatPlainText(text.toString(), false) + "</div>";
} else
html = h;