This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Task 1: | |
// copy-paste start ---------------------------------------- | |
// TODO: define function argument type | |
function addOne(numberOrNumbers) { | |
if (typeof numberOrNumbers === 'number') { | |
return numberOrNumbers + 1 | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy the HTML of the current selection | |
import { getHTMLFromFragment } from "@tiptap/core"; | |
import { Fragment, Node } from "prosemirror-model"; | |
getHTMLFromFragment( | |
editor.view.state.selection.content().content, | |
editor.schema | |
) | |
// Copy the text of the current selection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin sr_only() { | |
position: absolute; | |
width: 1px; | |
height: 1px; | |
padding: 0; | |
margin: -1px; | |
overflow: hidden; | |
clip: rect(0,0,0,0); | |
border: 0; | |
text-transform: unset; |
OlderNewer