File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable react-hooks/rules-of-hooks */
12import { ArgTypes , StoryObj } from '@storybook/react' ;
23import React from 'react' ;
34import { EditorEvent , Events , Editor as TinyMCEEditor } from 'tinymce' ;
@@ -81,9 +82,8 @@ export const ControlledInput: StoryObj<typeof Editor> = {
8182 < Editor
8283 apiKey = { apiKey }
8384 value = { data }
84- onEditorChange = { ( e , editor ) => {
85- console . log ( 'Calling setData with' , e ) ;
86- setData ( e )
85+ onEditorChange = { ( e , _editor ) => {
86+ setData ( e ) ;
8787 } }
8888 tinymceScriptSrc = '../../node_modules/tinymce/tinymce.js'
8989 />
@@ -97,7 +97,6 @@ export const ControlledInput: StoryObj<typeof Editor> = {
9797 }
9898} ;
9999
100-
101100// The editor will enforce a value that is given to it.
102101// Note that the value must be valid HTML or it will forever correcting it and then rolling back the change.
103102export const ControlledInputFixed : StoryObj < typeof Editor > = {
You can’t perform that action at this time.
0 commit comments