mirror of https://github.com/M66B/FairEmail.git
Paste raw HTML
This commit is contained in:
parent
3db4d5c52a
commit
28cc7da86f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue