feat(slides): add sandboxed Reveal.js viewer and editor preview
This commit is contained in:
1 parent
09afb438c9
commit
02fb77f72b
30 files changed
+532
-9
No files matched your search
@@ -185,6 +185,9 @@ func (s *Server) adapterActionsForPath(r *http.Request, semanticPath string) ([]
|
||||
{ID: "download", Name: "download", Mode: "viewer", Builtin: true,
|
||||
OpenURL: rawProjectionURL("rev:" + revision.UUID)},
|
||||
}
|
||||
if (mediaType == "text/html" || mediaType == "text/markdown" || mediaType == "text/x-markdown") && s.systemExtensionEnabled(domainUUID, "viewer.slides") {
|
||||
actions = append(actions, adapterAction{ID: "reveal", Name: "Reveal.js", Mode: "viewer", Builtin: true, OpenURL: "/v/slides" + semanticPath})
|
||||
}
|
||||
if selected.NeedsText || selected.ID == "html" || selected.ID == "excalidraw" {
|
||||
actions = append(actions, adapterAction{
|
||||
ID: "editor", Name: "Pages Wiki Editor", Mode: "editor",
|
||||
|
||||
Reference in new issue
Block a user