Skip to content

Instantly share code, notes, and snippets.

@Nantris
Nantris / ListFixesExtension.ts
Last active June 10, 2023 19:42
Generic, extensionized version of bdbch's list fixes for TipTap v2 with additional fixes
import { Extension, isNodeActive, Range } from '@tiptap/core';
import { joinPoint } from '@tiptap/pm/transform';
import {
findListItemPos,
hasPreviousListItem,
isAtEndOfNode,
isAtStartOfNode,
listItemHasSubList,
nextListIsDeeper,
nextListIsHigher,
@Nantris
Nantris / index.html
Created October 6, 2022 23:15
Repro for 27934
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@Nantris
Nantris / index.html
Created May 14, 2022 22:01
setContentProtection does not work on Windows 11
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>
@Nantris
Nantris / index.html
Created February 3, 2022 22:52
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@Nantris
Nantris / index.html
Created December 1, 2021 20:34
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Global shortcut behavior disrepancy</title>
</head>
<body>
<h1>NOTE</h1>
<p>Devtools is forcibly detached to ensure consistent reproduction of the issue</p>
@Nantris
Nantris / index.html
Created December 1, 2021 20:29
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Global shortcut behavior disrepancy</title>
</head>
<body>
<h1>IMPORTANT</h1>
<p>Please undock the devtools to ensure consistent reproduction, as the keyup handler won't fire if docked devtools receive focus.</p>
@Nantris
Nantris / index.html
Created November 11, 2021 02:09
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@Nantris
Nantris / index.html
Created October 21, 2021 17:20
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@Nantris
Nantris / index.html
Created April 19, 2021 21:17
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@Nantris
Nantris / index.html
Created April 19, 2021 21:16
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,