Skip to content

Commit 8acedb0

Browse files
committed
webiste: update example.
1 parent af4c448 commit 8acedb0

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

www/src/Example.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@ const Example = (props = {} as { mdStr: string }) => {
2727
autoFocus
2828
value={state.value}
2929
overflow={state.overflow}
30-
components={{
31-
toolbar: (command, disabled, executeCommand) => {
32-
if (command.keyCommand === 'code') {
33-
return (
34-
<button
35-
aria-label="Insert title3"
36-
disabled={disabled}
37-
onClick={(evn) => {
38-
evn.stopPropagation();
39-
executeCommand(command, command.groupName);
40-
}}
41-
>
42-
btn
43-
</button>
44-
);
45-
}
46-
},
47-
}}
4830
previewOptions={{
4931
linkTarget: '_blank',
5032
rehypePlugins: [

0 commit comments

Comments
 (0)