aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-06-26 13:12:39 -0400
committerab <abdullah_ahmed@brown.edu>2019-06-26 13:12:39 -0400
commit4b69ee75fbc98d81eac1bbad0749cf266ccd4c3c (patch)
tree167c9bb51f692ac1dd7ce44b0f1be7ef90cf73b8 /src
parentc2c04325e0f29c01cd5ab0617d17a62183a53611 (diff)
idk
Diffstat (limited to 'src')
-rw-r--r--src/client/util/TooltipTextMenu.tsx7
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx1
2 files changed, 2 insertions, 6 deletions
diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx
index d08048e21..c42a29806 100644
--- a/src/client/util/TooltipTextMenu.tsx
+++ b/src/client/util/TooltipTextMenu.tsx
@@ -153,8 +153,6 @@ export class TooltipTextMenu {
// quick and dirty null check
const outer_div = this.editorProps.outer_div;
outer_div && outer_div(this.tooltip);
-
- console.log("hi");
}
//label of dropdown will change to given label
@@ -552,8 +550,6 @@ export class TooltipTextMenu {
let { from, to } = state.selection;
//UPDATE LIST ITEM DROPDOWN
- //this.listTypeBtnDom = this.updateListItemDropdown(":", this.listTypeBtnDom!);
- //this._activeMarks = [];
//UPDATE FONT STYLE DROPDOWN
let activeStyles = this.activeMarksOnSelection(this.fontStyles);
@@ -606,6 +602,7 @@ export class TooltipTextMenu {
let has = false, tr = state.tr;
for (let i = 0; !has && i < ranges.length; i++) {
let { $from, $to } = ranges[i];
+ let hasmark: boolean = state.doc.rangeHasMark($from.pos, $to.pos, mark);
return state.doc.rangeHasMark($from.pos, $to.pos, mark);
}
}
@@ -633,13 +630,13 @@ export class TooltipTextMenu {
}
return false;
});
- return activeMarks;
}
else {
return [];
}
}
+ return activeMarks;
}
reference_node(pos: ResolvedPos<any>): ProsNode {
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 391e42b57..ca2a58cfe 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -101,7 +101,6 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
super(props);
if (this.props.outer_div) {
this._outerdiv = this.props.outer_div;
- console.log("yay");
}
this._ref = React.createRef();