chore: Move editor into codebase (#2930)
This commit is contained in:
1
shared/typings/gemoji.d.ts
vendored
Normal file
1
shared/typings/gemoji.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
declare module "gemoji";
|
||||
5
shared/typings/markdown-it-mark.d.ts
vendored
Normal file
5
shared/typings/markdown-it-mark.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
declare module "markdown-it-mark" {
|
||||
function plugin(md: any): void;
|
||||
|
||||
export = plugin;
|
||||
}
|
||||
10
shared/typings/prosemirror-model.d.ts
vendored
Normal file
10
shared/typings/prosemirror-model.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import "prosemirror-model";
|
||||
|
||||
declare module "prosemirror-model" {
|
||||
interface Slice {
|
||||
// this method is missing in the DefinitelyTyped type definition, so we
|
||||
// must patch it here.
|
||||
// https://github.com/ProseMirror/prosemirror-model/blob/bd13a2329fda39f1c4d09abd8f0db2032bdc8014/src/replace.js#L51
|
||||
removeBetween(from: number, to: number): Slice;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user