mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Show highlighted text in right panel
This commit is contained in:
parent
33fdad5159
commit
446c41d020
@ -44,7 +44,7 @@ import BacklinksWidget from "../widgets/floating_buttons/zpetne_odkazy.js";
|
|||||||
import SharedInfoWidget from "../widgets/shared_info.js";
|
import SharedInfoWidget from "../widgets/shared_info.js";
|
||||||
import FindWidget from "../widgets/find.js";
|
import FindWidget from "../widgets/find.js";
|
||||||
import TocWidget from "../widgets/toc.js";
|
import TocWidget from "../widgets/toc.js";
|
||||||
import HighlightTextWidget from "../widgets/highlighted_text.js";
|
import HighlightedTextWidget from "../widgets/highlighted_text.js";
|
||||||
import BulkActionsDialog from "../widgets/dialogs/bulk_actions.js";
|
import BulkActionsDialog from "../widgets/dialogs/bulk_actions.js";
|
||||||
import AboutDialog from "../widgets/dialogs/about.js";
|
import AboutDialog from "../widgets/dialogs/about.js";
|
||||||
import HelpDialog from "../widgets/dialogs/help.js";
|
import HelpDialog from "../widgets/dialogs/help.js";
|
||||||
@ -182,7 +182,7 @@ export default class DesktopLayout {
|
|||||||
)
|
)
|
||||||
.child(new RightPaneContainer()
|
.child(new RightPaneContainer()
|
||||||
.child(new TocWidget())
|
.child(new TocWidget())
|
||||||
.child(new HighlightTextWidget())
|
.child(new HighlightedTextWidget())
|
||||||
.child(...this.customWidgets.get('right-pane'))
|
.child(...this.customWidgets.get('right-pane'))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -46,7 +46,7 @@ const TPL = `<div class="highlighted-text-widget">
|
|||||||
<span class="highlighted-text"></span>
|
<span class="highlighted-text"></span>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
export default class HighlightTextWidget extends RightPanelWidget {
|
export default class HighlightedTextWidget extends RightPanelWidget {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ class CloseHltButton extends OnClickButtonWidget {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
this.icon("bx-x")
|
this.icon("bx-x")
|
||||||
.title("Close HighlightTextWidget")
|
.title("Close HighlightedTextWidget")
|
||||||
.titlePlacement("bottom")
|
.titlePlacement("bottom")
|
||||||
.onClick((widget, e) => {
|
.onClick((widget, e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user