File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -128,13 +128,11 @@ function serializeBlock<
128128 ) ;
129129
130130 const elementFragment = doc . createDocumentFragment ( ) ;
131- if (
132- ret . dom instanceof HTMLElement &&
133- ret . dom . classList . contains ( "bn-block-content" )
134- ) {
131+
132+ if ( ( ret . dom as HTMLElement ) . classList . contains ( "bn-block-content" ) ) {
135133 const blockContentDataAttributes = [
136134 ...attrs ,
137- ...Array . from ( ret . dom . attributes ) ,
135+ ...Array . from ( ( ret . dom as HTMLElement ) . attributes ) ,
138136 ] . filter (
139137 ( attr ) =>
140138 attr . name . startsWith ( "data" ) &&
Original file line number Diff line number Diff line change @@ -193,15 +193,11 @@ const getTipTapExtensions = <
193193 Extension . create ( {
194194 name : "dropCursor" ,
195195 addProseMirrorPlugins : ( ) => [
196- // TODO need to figure out why this isn't working with the default plugin key
197- {
198- ...opts . dropCursor ( {
199- width : 5 ,
200- color : "#ddeeff" ,
201- editor : opts . editor ,
202- } ) ,
203- key : new PluginKey ( "dropCursor" ) ,
204- } as unknown as Plugin ,
196+ opts . dropCursor ( {
197+ width : 5 ,
198+ color : "#ddeeff" ,
199+ editor : opts . editor ,
200+ } ) ,
205201 ] ,
206202 } ) ,
207203
You can’t perform that action at this time.
0 commit comments