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
import { createHeadlessEditor } from '@lexical/headless' | |
import { | |
EditorConfig, | |
getEnabledNodes, | |
sanitizeEditorConfig, | |
} from '@payloadcms/richtext-lexical' | |
import { $getRoot, SerializedRootNode } from 'lexical' | |
import { Validate } from 'payload/types' | |
import { simple } from '../config/lexical' |
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
import classNames from "classnames"; | |
import React, { useEffect, useRef, useState } from "react"; | |
import { UnfoldMore, UnfoldLess, Dismiss, Restore } from "./toc-buttons.js"; | |
enum State { | |
Normal, | |
Expanded, | |
Collapsed, | |
} |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |