jodit / jodit-react

React wrapper for Jodit
MIT License
354 stars 118 forks source link

"paste code" plugin is not working in Next.js #265

Closed RanaWaqar7550 closed 2 months ago

RanaWaqar7550 commented 2 months ago

I've been trying to add paste code plugin but i'm unable to see the paste code button on the toolbar.

const configrations = useMemo(() => {
readonly: false,
buttons: [
    "center",
    "bold",
    "italic",
    "ul",
    "ol",
    "left",
    "right",
    "font",
    "paragraph",
    "link",
    "undo",
    "underline",
],
extraPlugins: ['pasteCode']
}, []);
 <Jodit
      ref={ref}
      value={value}
      config={config}
      tabIndex={1} 
      onBlur={onBlur} 
      onChange={onChange}
    />

https://xdsoft.net/jodit/pro/docs/plugin/paste-code/

Please someone help me with this?