diff --git a/caster-editor/src/components/NodeEditorCell.vue b/caster-editor/src/components/NodeEditorCell.vue index 31f1b02f..4acd9396 100644 --- a/caster-editor/src/components/NodeEditorCell.vue +++ b/caster-editor/src/components/NodeEditorCell.vue @@ -33,7 +33,10 @@ />
-
+

{{ scriptCell.cellType }}

@@ -132,4 +135,31 @@ const deleteScriptCell = async (uuid: Scalars["UUID"]) => { const playScriptCell = () => { ElMessage.error("Script cell playback not yet implemented"); }; + +const openHelp = (cellType: CellType) => { + let helpUrl = "https://docs.gencaster.org"; + switch (cellType) { + case CellType.Audio: { + helpUrl = `${helpUrl}/editor.html#audio`; + break; + } + case CellType.Comment: { + helpUrl = `${helpUrl}/editor.html#comment`; + break; + } + case CellType.Markdown: { + helpUrl = `${helpUrl}/editor.html#markdown`; + break; + } + case CellType.Python: { + helpUrl = `${helpUrl}/editor.html#python`; + break; + } + case CellType.Supercollider: { + helpUrl = `${helpUrl}/editor.html#supercollider`; + break; + } + } + window.open(helpUrl, "_blank"); +}; diff --git a/caster-editor/src/components/NodeEditorCells.vue b/caster-editor/src/components/NodeEditorCells.vue index 24f347ff..5aa8de55 100644 --- a/caster-editor/src/components/NodeEditorCells.vue +++ b/caster-editor/src/components/NodeEditorCells.vue @@ -143,7 +143,6 @@ const moveableScriptCells = computed({ display: flex; justify-content: center; align-items: center; - pointer-events: none; p { margin: 0;