diff --git a/src/public/app/services/note_types.js b/src/public/app/services/note_types.js index 523974c13..4f89616fc 100644 --- a/src/public/app/services/note_types.js +++ b/src/public/app/services/note_types.js @@ -12,7 +12,7 @@ async function getNoteTypeItems(command) { { title: "Book", command: command, type: "book", uiIcon: "bx bx-book" }, { title: "Mermaid Diagram", command: command, type: "mermaid", uiIcon: "bx bx-selection" }, { title: "Canvas", command: command, type: "canvas", uiIcon: "bx bx-pen" }, - { title: "Web View", command: command, type: "iframe", uiIcon: "bx bx-globe-alt" }, + { title: "Web View", command: command, type: "web-view", uiIcon: "bx bx-globe-alt" }, ]; const templateNoteIds = await server.get("search-templates"); diff --git a/src/public/app/widgets/type_widgets/web_view.js b/src/public/app/widgets/type_widgets/web_view.js index 5fe466584..e35bd79b3 100644 --- a/src/public/app/widgets/type_widgets/web_view.js +++ b/src/public/app/widgets/type_widgets/web_view.js @@ -3,10 +3,16 @@ import attributeService from "../../services/attributes.js"; const TPL = `
This help note is shown because this note of type WebView HTML doesn't have required label to function properly.
+Note of type Web View allow you to embed websites into Trilium.
-Please create label with a URL address you want to embed, e.g. #webViewSrc="http://www.google.com"
To start, please create a label with a URL address you want to embed, e.g. #webViewSrc="http://www.google.com"
Web View is an experimental note type, and it might be removed or substantially changed in the future. Web View works also only in the desktop build.