diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json index b8064115a..465b235cb 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json @@ -6,15 +6,31 @@ "paragraphs": [ { "style": "Text", - "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Style" + "text": "The syntax to embed a YouTube video at a Docs page is the following:" + }, + { + "style": "Json", + "text": "videoId (taken from YouTube)" + }, + { + "style": "Title", + "text": "Example:" + }, + { + "style": "Json", + "text": "fO-CHEEVneI" }, { "style": "Text", - "text": "A style is a definition of color and opacity in case of a polygon body, and color, opacity and line thickness in case of polygon borders." + "text": "This would render the following video:" }, { - "style": "Text", - "text": "." + "style": "Youtube", + "text": "fO-CHEEVneI" + }, + { + "style": "Success", + "text": " To edit a YouTube video found at a Docs page, you need to right click slightly on top of the upper border or the video, not on the video itself. " } ] } \ No newline at end of file diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 650133af2..b680a071b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -1749,6 +1749,7 @@ function newSuperalgosDocSpace() { function navigateTo(project, category, type, anchor, nodeId) { + EDITOR_ON_FOCUS = false // forced exit paragraphMap = new Map() /* Replace the current object with this */