mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-14 14:10:56 +00:00
add brush class to avoid code missing in desk app
This commit is contained in:
@@ -95,11 +95,14 @@ public class HtmlImporter {
|
||||
}
|
||||
|
||||
private void addClass(Element element) {
|
||||
switch (element.nodeName()) {
|
||||
switch (element.nodeName().toLowerCase()) {
|
||||
case "pre":
|
||||
if (!element.hasClass("ace-tomorrow")) {
|
||||
element.addClass("ace-tomorrow");
|
||||
}
|
||||
if (!element.hasClass("brush:html")) {
|
||||
element.addClass("brush:html");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user