Skip to content

Build your personal knowledge base with Trilium Notes

feat(client): open help over the quick edit popup in a nested popup

Elian Doran77686deccb0a
diff --git a/apps/client/src/components/app_context.ts b/apps/client/src/components/app_context.ts
index edbdcbe2c7..eeb94b86fc 100644
--- a/apps/client/src/components/app_context.ts
+++ b/apps/client/src/components/app_context.ts
@@ -91,6 +91,14 @@ export interface NoteCommandData extends CommandData {
activeSplit?: number;
}
+/** The note a quick-edit popup opens, and how. */
+export interface OpenInPopupData extends CommandData {
+ noteIdOrPath: string;
+ viewScope?: ViewScope;
+ /** Offers the note type switcher while the note is still blank, as the tab layout does. */
+ showNoteTypeSwitcher?: boolean;
+}
+
export interface ExecuteCommandData<T> extends CommandData {
resolve: (data: T) => void;
}
@@ -167,12 +175,9 @@ export type CommandMappings = {
openNewNoteSplit: NoteCommandData;
openInWindow: NoteCommandData;
/** Opens a note in the quick-edit popup. A `viewScope` carrying an `attachmentId` opens that attachment instead of the note itself. */
- openInPopup: CommandData & {
- noteIdOrPath: string;
- viewScope?: ViewScope;
- /** Offers the note type switcher while the note is still blank, as the tab layout does. */
- showNoteTypeSwitcher?: boolean;
- };
+ openInPopup: OpenInPopupData;
+ /** Opens a note in a second quick-edit popup, over the first one, such as a help page asked for from within it. */
+ openInNestedPopup: OpenInPopupData;
/** Dismisses the quick-edit popup, for something within it that has sent the reader elsewhere. Does nothing if it isn't open. */
closePopupEditor: CommandData;
openInTreePopup: CommandData & { noteIdOrPath: string; hoistedNoteId: string; };
diff --git a/apps/client/src/layouts/layout_commons.tsx b/apps/client/src/layouts/layout_commons.tsx
index e3da3f05aa..d4dccf00bf 100644
--- a/apps/client/src/layouts/layout_commons.tsx
+++ b/apps/client/src/layouts/layout_commons.tsx
@@ -6,7 +6,7 @@ import type RootContainer from "../widgets/containers/root_container.js";
import CallToActionDialog from "../widgets/dialogs/call_to_action.jsx";
import PopupEditorDialog from "../widgets/dialogs/PopupEditor.jsx";
import { useTriliumEvents } from "../widgets/react/hooks.jsx";
-import { ParentComponent } from "../widgets/react/react_utils.jsx";
+import { ParentComponent, POPUP_EDITOR_NTX_ID } from "../widgets/react/react_utils.jsx";
import ShortcutHintsPanel from "../widgets/shortcut_hints/shortcut_hints_panel.jsx";
import ToastContainer from "../widgets/Toast.jsx";
@@ -51,6 +51,7 @@ export function applyModals(rootContainer: RootContainer) {
// - CallToAction has no summon event; it decides whether to show itself on startup, so there is nothing to lazily mount against.
// - Toast is needed immediately and continuously to surface messages/errors, including ones raised during startup.
.child(<PopupEditorDialog />)
+ .child(<PopupEditorDialog ntxId={`${POPUP_EDITOR_NTX_ID}-nested`} openCommand="openInNestedPopup" />)
.child(<CallToActionDialog />)
.child(<ToastContainer />)
// Auxiliary tooltip-style panel; always mounted (renders nothing until summoned), like the toast host.
diff --git a/apps/client/src/widgets/dialogs/PopupEditor.spec.tsx b/apps/client/src/widgets/dialogs/PopupEditor.spec.tsx
index ed473ceb86..5eb913d9f3 100644
--- a/apps/client/src/widgets/dialogs/PopupEditor.spec.tsx
+++ b/apps/client/src/widgets/dialogs/PopupEditor.spec.tsx
@@ -13,7 +13,7 @@ const mocks = vi.hoisted(() => ({
getNote: vi.fn(),
getAttachment: vi.fn(),
/** Every context the popup created, newest last — one is built per open. */
- contexts: [] as { setNote: ReturnType<typeof vi.fn>, viewScope?: ViewScope, noteId: string }[],
+ contexts: [] as { setNote: ReturnType<typeof vi.fn>, viewScope?: ViewScope, noteId: string, ntxId: string }[],
isMobile: vi.fn(() => false)
}));
@@ -367,6 +367,41 @@ describe("PopupEditor", () => {
expect(document.body.classList.contains("popup-editor-open")).toBe(false);
});
+ it("opens a nested popup over itself, which answers only its own command and context", async () => {
+ const nestedContainer = document.body.appendChild(document.createElement("div"));
+ await act(async () => {
+ render(
+ <ParentComponent.Provider value={parent}>
+ <PopupEditor ntxId="_popup-editor-nested" openCommand="openInNestedPopup" />
+ </ParentComponent.Provider>,
+ nestedContainer
+ );
+ });
+ const nestedModal = nestedContainer.querySelector<HTMLElement>(".modal-stub");
+ expect(nestedModal).not.toBeNull();
+ const isOpen = () => document.body.classList.contains("popup-editor-open");
+
+ await openPopup({ noteIdOrPath: "root/n1" });
+ expect(modal()?.dataset.shown).toBe("true");
+ expect(nestedModal?.dataset.shown).toBe("false");
+
+ await act(async () => {
+ await parent.handleEvent("openInNestedPopup", { noteIdOrPath: "_help_abc" } as never);
+ });
+ expect(nestedModal?.dataset.shown).toBe("true");
+ expect(lastContext()?.ntxId).toBe("_popup-editor-nested");
+ expect(lastContext()?.setNote).toHaveBeenCalledWith("_help_abc", expect.anything());
+
+ // Closing one popup keeps the page's popup layering for the one still open.
+ await act(async () => nestedContainer.querySelector<HTMLElement>(".hidden-stub")?.click());
+ expect(isOpen()).toBe(true);
+ await act(async () => container.querySelector<HTMLElement>(".hidden-stub")?.click());
+ expect(isOpen()).toBe(false);
+
+ render(null, nestedContainer);
+ nestedContainer.remove();
+ });
+
/**
* The popup is held low on purpose, so the editor's panels and the menus its pickers open float
* over it. A dialog declaring a layer of its own would cover it, so that dialog gives way for
diff --git a/apps/client/src/widgets/dialogs/PopupEditor.tsx b/apps/client/src/widgets/dialogs/PopupEditor.tsx
index badafe0102..569876391b 100644
--- a/apps/client/src/widgets/dialogs/PopupEditor.tsx
+++ b/apps/client/src/widgets/dialogs/PopupEditor.tsx
@@ -18,7 +18,7 @@ import NoteDetail from "../NoteDetail";
import PromotedAttributes from "../PromotedAttributes";
import { useContainedLinkNavigation, useNoteContext, useNoteLabel, useTriliumEvent } from "../react/hooks";
import Modal from "../react/Modal";
-import { NoteContextContext, ParentComponent } from "../react/react_utils";
+import { NoteContextContext, ParentComponent, POPUP_EDITOR_NTX_ID } from "../react/react_utils";
import MobileEditorToolbar from "../type_widgets/text/mobile_editor_toolbar";
/** The layer the stylesheet gives this popup while it stands over another modal. */
@@ -27,16 +27,24 @@ const STACKED_LAYER = 1100;
/** Where a dialog this popup stands over is held while it is up, which is under its backdrop. */
const COVERED_LAYER = 1090;
-export default function PopupEditor() {
+/** The `ntxId`s of the popups on show, and of those stacked over another modal, which the page's classes reflect. */
+const shownPopups = new Set<string>();
+const stackedPopups = new Set<string>();
+
+export default function PopupEditor({ ntxId = POPUP_EDITOR_NTX_ID, openCommand = "openInPopup" }: {
+ ntxId?: string;
+ /** The command this popup opens on. */
+ openCommand?: "openInPopup" | "openInNestedPopup";
+}) {
const [ shown, setShown ] = useState(false);
const [ stacked, setStacked ] = useState(false);
const [ switchable, setSwitchable ] = useState(false);
const parentComponent = useContext(ParentComponent);
- const [ noteContext, setNoteContext ] = useState(() => new NoteContext("_popup-editor"));
+ const [ noteContext, setNoteContext ] = useState(() => new NoteContext(ntxId));
const modalRef = useRef<HTMLDivElement>(null);
const isMobile = utils.isMobile();
- useTriliumEvent("openInPopup", async ({ noteIdOrPath, viewScope, showNoteTypeSwitcher }) => {
+ useTriliumEvent(openCommand, async ({ noteIdOrPath, viewScope, showNoteTypeSwitcher }) => {
const noteId = tree.getNoteIdAndParentIdFromUrl(noteIdOrPath);
if (!noteId.noteId) return;
const note = await froca.getNote(noteId.noteId);
@@ -48,7 +56,7 @@ export default function PopupEditor() {
return;
}
- const noteContext = new NoteContext("_popup-editor");
+ const noteContext = new NoteContext(ntxId);
setStacked(!!document.querySelector(".modal.show"));
setSwitchable(!!showNoteTypeSwitcher);
@@ -88,9 +96,15 @@ export default function PopupEditor() {
// Add a global class to be able to handle issues with z-index due to rendering in a popup.
useEffect(() => {
- document.body.classList.toggle("popup-editor-open", shown);
- document.body.classList.toggle("popup-editor-stacked", shown && stacked);
- }, [shown, stacked]);
+ if (shown) shownPopups.add(ntxId);
+ if (shown && stacked) stackedPopups.add(ntxId);
+ syncPopupClasses();
+ return () => {
+ shownPopups.delete(ntxId);
+ stackedPopups.delete(ntxId);
+ syncPopupClasses();
+ };
+ }, [ shown, stacked, ntxId ]);
// A CKEditor dialog — the AI assistant — stacks at `--ck-z-dialog` (9999), far above the 999
// this popup is deliberately held at so the editor's own panels can float over it. One already
@@ -191,6 +205,11 @@ export default function PopupEditor() {
);
}
+function syncPopupClasses() {
+ document.body.classList.toggle("popup-editor-open", shownPopups.size > 0);
+ document.body.classList.toggle("popup-editor-stacked", stackedPopups.size > 0);
+}
+
export function DialogWrapper({ children }: { children: ComponentChildren }) {
const { note } = useNoteContext();
const wrapperRef = useRef<HTMLDivElement>(null);
diff --git a/apps/client/src/widgets/layout/ActiveContentBadges.tsx b/apps/client/src/widgets/layout/ActiveContentBadges.tsx
index 7f99ee146c..9f01e8279e 100644
--- a/apps/client/src/widgets/layout/ActiveContentBadges.tsx
+++ b/apps/client/src/widgets/layout/ActiveContentBadges.tsx
@@ -5,10 +5,11 @@ import { useEffect, useState } from "preact/hooks";
import FNote from "../../entities/fnote";
import attributes from "../../services/attributes";
import { t } from "../../services/i18n";
-import { isElectron, openInAppHelpFromUrl } from "../../services/utils";
+import { isElectron } from "../../services/utils";
import { BadgeWithDropdown } from "../react/Badge";
import { FormDropdownDivider, FormListItem } from "../react/FormList";
import FormToggle from "../react/FormToggle";
+import { openHelpPageFor } from "../react/HelpButton";
import { useNoteContext, useNoteProperty, useTriliumEvent } from "../react/hooks";
import { BookProperty, ViewProperty } from "../react/NotePropertyMenu";
@@ -156,18 +157,18 @@ const typeMappings: Record<ActiveContentInfo["type"], {
};
export function ActiveContentBadges() {
- const { note } = useNoteContext();
+ const { note, ntxId } = useNoteContext();
const info = useActiveContentInfo(note);
return (note && info &&
<>
{info.canToggleEnabled && <ActiveContentToggle info={info} note={note} />}
- <ActiveContentBadge info={info} note={note} />
+ <ActiveContentBadge info={info} note={note} ntxId={ntxId} />
</>
);
}
-function ActiveContentBadge({ info, note }: { note: FNote, info: ActiveContentInfo }) {
+function ActiveContentBadge({ info, note, ntxId }: { note: FNote, info: ActiveContentInfo, ntxId: string | null | undefined }) {
const { title, icon, helpPage, apiDocsPage, electronApiDocsPage, additionalOptions } = typeMappings[info.type];
return (
<BadgeWithDropdown
@@ -187,17 +188,17 @@ function ActiveContentBadge({ info, note }: { note: FNote, info: ActiveContentIn
<FormListItem
icon="bx bx-help-circle"
- onClick={() => openInAppHelpFromUrl(helpPage)}
+ onClick={() => openHelpPageFor(helpPage, ntxId)}
>{t("active_content_badges.menu_docs")}</FormListItem>
{apiDocsPage && <FormListItem
icon="bx bx-book-content"
- onClick={() => openInAppHelpFromUrl(apiDocsPage)}
+ onClick={() => openHelpPageFor(apiDocsPage, ntxId)}
>{t("code_buttons.trilium_api_docs_button_title")}</FormListItem>}
{electronApiDocsPage && isElectron() && <FormListItem
icon="bx bx-window-alt"
- onClick={() => openInAppHelpFromUrl(electronApiDocsPage)}
+ onClick={() => openHelpPageFor(electronApiDocsPage, ntxId)}
>{t("code_buttons.electron_api_docs_button_title")}</FormListItem>}
</BadgeWithDropdown>
);
diff --git a/apps/client/src/widgets/layout/NoteActionsCustom.spec.tsx b/apps/client/src/widgets/layout/NoteActionsCustom.spec.tsx
index f03db21299..b155f82b50 100644
--- a/apps/client/src/widgets/layout/NoteActionsCustom.spec.tsx
+++ b/apps/client/src/widgets/layout/NoteActionsCustom.spec.tsx
@@ -1,5 +1,6 @@
-import { describe, expect, it } from "vitest";
+import { describe, expect, it, vi } from "vitest";
+import appContext from "../../components/app_context";
import Component from "../../components/component";
import NoteContext from "../../components/note_context";
import { ViewScope } from "../../services/link";
@@ -15,6 +16,22 @@ describe("NoteActionsCustom", () => {
expect(renderCopyButton({}, { viewMode: "attachments" })).toBeNull();
});
+ it("opens the note type's help over the quick edit popup it stands in", () => {
+ const triggerCommand = vi.spyOn(appContext, "triggerCommand").mockResolvedValue(undefined);
+ const note = buildNote({ title: "Diagram", type: "mermaid" });
+ const container = renderInto(
+ <ParentComponent.Provider value={new Component()}>
+ <NoteActionsCustom note={note} ntxId="_popup-editor" noteContext={{ viewScope: { viewMode: "default" } } as NoteContext} />
+ </ParentComponent.Provider>
+ );
+
+ const helpButton = container.querySelector<HTMLElement>("button.bx-help-circle");
+ expect(helpButton).not.toBeNull();
+ helpButton?.click();
+ expect(triggerCommand).toHaveBeenCalledWith("openInNestedPopup", { noteIdOrPath: "_help_s1aBHPd79XYj" });
+ triggerCommand.mockRestore();
+ });
+
function renderCopyButton({ isProtected = false }: { isProtected?: boolean }, viewScope: ViewScope = { viewMode: "default" }) {
const note = buildNote({ title: "Diagram", type: "mermaid" });
note.isProtected = isProtected;
diff --git a/apps/client/src/widgets/layout/NoteActionsCustom.tsx b/apps/client/src/widgets/layout/NoteActionsCustom.tsx
index cccfdcd386..b1c1c37ce7 100644
--- a/apps/client/src/widgets/layout/NoteActionsCustom.tsx
+++ b/apps/client/src/widgets/layout/NoteActionsCustom.tsx
@@ -14,13 +14,14 @@ import { downloadFileNote, openNoteExternally } from "../../services/open";
import server from "../../services/server";
import toast from "../../services/toast";
import tree from "../../services/tree";
-import { clearBrowserCache, createImageSrcUrl, isMobile, openInAppHelpFromUrl } from "../../services/utils";
+import { clearBrowserCache, createImageSrcUrl, isMobile } from "../../services/utils";
import { ViewTypeOptions } from "../collections/interface";
import { showImageCompressionDialog } from "../dialogs/image_compression/image_compression_dialog";
import ActionButton, { ActionButtonProps } from "../react/ActionButton";
import { ButtonGroup } from "../react/Button";
import { FormFileUploadActionButton, FormFileUploadFormListItem, FormFileUploadProps } from "../react/FormFileUpload";
import { FormListItem } from "../react/FormList";
+import { openHelpPageFor } from "../react/HelpButton";
import { useEffectiveReadOnly, useNoteLabel, useNoteLabelBoolean, useNoteProperty, useTriliumEvent, useTriliumEvents, useTriliumOption } from "../react/hooks";
import { isSplitEditorForcedReadOnly, resolveDisplayMode } from "../type_widgets/helpers/split_editor_mode";
import { ParentComponent } from "../react/react_utils";
@@ -349,7 +350,7 @@ function buildSaveSqlToNoteHandler(note: FNote) {
};
}
-function InAppHelpButton({ note }: NoteActionsCustomInnerProps) {
+function InAppHelpButton({ note, ntxId }: NoteActionsCustomInnerProps) {
const helpUrl = getHelpUrlForNote(note);
const isEnabled = !!helpUrl;
@@ -357,7 +358,7 @@ function InAppHelpButton({ note }: NoteActionsCustomInnerProps) {
<NoteAction
icon="bx bx-help-circle"
text={t("help-button.title")}
- onClick={() => helpUrl && openInAppHelpFromUrl(helpUrl)}
+ onClick={() => helpUrl && openHelpPageFor(helpUrl, ntxId)}
/>
);
}
diff --git a/apps/client/src/widgets/react/HelpButton.spec.tsx b/apps/client/src/widgets/react/HelpButton.spec.tsx
new file mode 100644
index 0000000000..1ed33dbc50
--- /dev/null
+++ b/apps/client/src/widgets/react/HelpButton.spec.tsx
@@ -0,0 +1,39 @@
+import { beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ triggerCommand: vi.fn(),
+ openInAppHelpFromUrl: vi.fn()
+}));
+
+vi.mock("../../components/app_context", () => ({
+ default: { triggerCommand: mocks.triggerCommand }
+}));
+
+vi.mock("../../services/utils", async (importActual) => ({
+ ...await importActual<typeof import("../../services/utils")>(),
+ openInAppHelpFromUrl: mocks.openInAppHelpFromUrl
+}));
+
+import { openHelpPageFor } from "./HelpButton";
+
+describe("openHelpPageFor", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ it("opens help beside a tab's note, over a dialog, and over the quick edit popup itself", () => {
+ openHelpPageFor("page", "ntx-tab");
+ openHelpPageFor("page", undefined);
+ expect(mocks.openInAppHelpFromUrl).toHaveBeenCalledTimes(2);
+ expect(mocks.triggerCommand).not.toHaveBeenCalled();
+
+ openHelpPageFor("page", "_options");
+ expect(mocks.triggerCommand).toHaveBeenLastCalledWith("openInPopup", { noteIdOrPath: "_help_page" });
+
+ openHelpPageFor("page", "_popup-editor");
+ expect(mocks.triggerCommand).toHaveBeenLastCalledWith("openInNestedPopup", { noteIdOrPath: "_help_page" });
+ openHelpPageFor("page", "_popup-editor-nested");
+ expect(mocks.triggerCommand).toHaveBeenLastCalledWith("openInNestedPopup", { noteIdOrPath: "_help_page" });
+ expect(mocks.openInAppHelpFromUrl).toHaveBeenCalledTimes(2);
+ });
+});
diff --git a/apps/client/src/widgets/react/HelpButton.tsx b/apps/client/src/widgets/react/HelpButton.tsx
index c6f98ecf7e..8ef3bd3f25 100644
--- a/apps/client/src/widgets/react/HelpButton.tsx
+++ b/apps/client/src/widgets/react/HelpButton.tsx
@@ -4,7 +4,7 @@ import { useContext } from "preact/hooks";
import appContext from "../../components/app_context";
import { t } from "../../services/i18n";
import { openInAppHelpFromUrl } from "../../services/utils";
-import { NoteContextContext } from "./react_utils";
+import { NoteContextContext, POPUP_EDITOR_NTX_ID } from "./react_utils";
interface HelpButtonProps {
className?: string;
@@ -14,16 +14,13 @@ interface HelpButtonProps {
}
export default function HelpButton({ className, helpPage, title, style }: HelpButtonProps) {
- // Inside a modal-hosted note context (e.g. the options dialog) the help split would open
- // hidden behind the dialog, so the help page opens in the quick-edit popup instead.
const noteContext = useContext(NoteContextContext);
- const isInModal = noteContext?.ntxId?.startsWith("_") ?? false;
return (
<button
class={`${className ?? ""} icon-action bx bx-help-circle`}
type="button"
- onClick={() => openHelpPage(helpPage, isInModal)}
+ onClick={() => openHelpPageFor(helpPage, noteContext?.ntxId)}
title={title ?? t("open-help-page")}
style={style}
/>
@@ -47,3 +44,18 @@ export function openHelpPage(inAppHelpPage: string, inPopup: boolean) {
void openInAppHelpFromUrl(inAppHelpPage);
}
}
+
+/**
+ * Opens an in-app help page where the note context named by `ntxId` can show it: a split beside a
+ * tab's note, the quick-edit popup over a modal-hosted context such as the options dialog's, and a
+ * nested popup over the quick-edit popup itself, which a split or the popup would hide or replace.
+ *
+ * @param inAppHelpPage the ID of the help note (excluding the `_help_` prefix).
+ */
+export function openHelpPageFor(inAppHelpPage: string, ntxId: string | null | undefined) {
+ if (ntxId?.startsWith(POPUP_EDITOR_NTX_ID)) {
+ void appContext.triggerCommand("openInNestedPopup", { noteIdOrPath: `_help_${inAppHelpPage}` });
+ } else {
+ openHelpPage(inAppHelpPage, !!ntxId?.startsWith("_"));
+ }
+}
diff --git a/apps/client/src/widgets/react/react_utils.tsx b/apps/client/src/widgets/react/react_utils.tsx
index 307c95e836..259763db49 100644
--- a/apps/client/src/widgets/react/react_utils.tsx
+++ b/apps/client/src/widgets/react/react_utils.tsx
@@ -9,6 +9,9 @@ export const ParentComponent = createContext<Component | null>(null);
export const NoteContextContext = createContext<NoteContext | null>(null);
+/** The `ntxId` of the quick-edit popup's note context. A nested popup's starts with it too. */
+export const POPUP_EDITOR_NTX_ID = "_popup-editor";
+
/**
* A click handler that triggers `command` from the surrounding component with the `ntxId` of the
* surrounding `NoteContextContext`, so a handler can act on the note of a context that is not the
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.html
index a017ba2af9..6c47f35e6c 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.html
@@ -24,6 +24,14 @@
depending on user preference, both the floating and classic editors are
supported. See&nbsp;<a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>.</li>
<li>The title and the note and the icon are editable, just like a normal tab.</li>
+ <li>The note's actions and its menu are shown in the header of the popup,
+ as in the title row of a tab.
+ <ul>
+ <li>A help page opened from the popup, such as through the help button of
+ the note type, opens in a second popup on top of it. Closing that popup
+ returns to the note being edited.</li>
+ </ul>
+ </li>
<li>The&nbsp;<a class="reference-link" href="#root/_help_OFXdgB2nNk1F">Promoted Attributes</a>&nbsp;are
also displayed.
<ul>
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.md
index a9b27e7c82..307997abb6 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Quick edit.md
@@ -13,6 +13,8 @@ This feature is also well integrated with <a class="reference-link" href="../..
* Note that the <a class="reference-link" href="../Notes/Note%20List.md">Note List</a> will not be displayed, except for notes of type <a class="reference-link" href="../../Collections.md">Collections</a>.
* For <a class="reference-link" href="../../Note%20Types/Text.md">Text</a> notes, depending on user preference, both the floating and classic editors are supported. See <a class="reference-link" href="../../Note%20Types/Text/Formatting%20toolbar.md">Formatting toolbar</a>.
* The title and the note and the icon are editable, just like a normal tab.
+* The note's actions and its menu are shown in the header of the popup, as in the title row of a tab.
+ * A help page opened from the popup, such as through the help button of the note type, opens in a second popup on top of it. Closing that popup returns to the note being edited.
* The <a class="reference-link" href="../../Advanced%20Usage/Attributes/Promoted%20Attributes.md">Promoted Attributes</a> are also displayed.
* This integrates well with <a class="reference-link" href="../../Collections.md">Collections</a> where there are predefined attributes such as the _Start date_ and _End date_, allowing for easy editing.