mirror of
https://github.com/leanote/leanote-android.git
synced 2026-01-16 06:04:24 +08:00
fix empty note issue
This commit is contained in:
@@ -74,6 +74,9 @@ public class RichTextEditor extends Editor implements TinnyMceCallback.TinnyMceL
|
||||
String content = new JsRunner().get(mWebView, "getContent();");
|
||||
content = HtmlUtils.unescapeHtml(content);
|
||||
AppLog.i(TAG, "unescaped=" + content);
|
||||
if ("<p><br data-mce-bogus=\"1\"></p>".equals(content)) {
|
||||
content = "";
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user