aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/util/RichTextSchema.tsx26
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx2
2 files changed, 14 insertions, 14 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index a29036f19..f10188c9e 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -28,9 +28,9 @@ export const nodes: { [index: string]: NodeSpec } = {
star: {
inline: true,
- attrs: { oldtext: { default: "suhhhh" } },
+ attrs: { oldtext: { default: "" } },
group: "inline",
- toDOM() { return ["star", "🟊"]; },
+ toDOM() { return ["star", "㊉"]; },
parseDOM: [{ tag: "star" }]
},
@@ -426,17 +426,17 @@ export class ImageResizeView {
}
}
-export class SummarizedView {
- _collapsed: HTMLElement;
- _selection: any;
- constructor(node: any) {
- this._collapsed = document.createElement("star");
- this._collapsed.onpointerdown = function (e: any) {
- console.log("star pressed!");
- };
-
- }
-}
+// export class SummarizedView {
+// _collapsed: HTMLElement;
+// _selection: any;
+// constructor(node: any) {
+// this._collapsed = document.createElement("star");
+// this._collapsed.onpointerdown = function (e: any) {
+// console.log("star pressed!");
+// };
+
+// }
+// }
// :: Schema
// This schema rougly corresponds to the document schema used by
// [CommonMark](http://commonmark.org/), minus the list elements,
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index b40c6d580..14597dbf1 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -16,7 +16,7 @@ import { DocumentManager } from "../../util/DocumentManager";
import { DragManager } from "../../util/DragManager";
import buildKeymap from "../../util/ProsemirrorKeymap";
import { inpRules } from "../../util/RichTextRules";
-import { SummarizedView, ImageResizeView, schema } from "../../util/RichTextSchema";
+import { ImageResizeView, schema } from "../../util/RichTextSchema";
import { SelectionManager } from "../../util/SelectionManager";
import { TooltipLinkingMenu } from "../../util/TooltipLinkingMenu";
import { TooltipTextMenu } from "../../util/TooltipTextMenu";