megahertz / react-simple-wysiwyg

Simple and lightweight React WYSIWYG editor
https://megahertz.github.io/react-simple-wysiwyg/
MIT License
119 stars 21 forks source link

Some options are working some are not. #39

Closed Nigro69 closed 5 months ago

Nigro69 commented 5 months ago

Options like undo/redo/bold/italic/underline/strike through/ they are working fine but after that all the options either misbehave or doesn't work.

https://github.com/megahertz/react-simple-wysiwyg/assets/112351758/c88a5f50-596e-4851-9f04-94502e73a4cd

import { useState } from 'react';
import Editor from 'react-simple-wysiwyg';

function App() {
  const [html, setHtml] = useState('my <b>HTML</b>');

  function onChange(e) {
    setHtml(e.target.value);
  }

  return (
    <Editor value={html} onChange={onChange} />
  );
}

I just want simple editor and yours is perfect but this issue is frustrating.

Please look into the issue. Thanks in advance

megahertz commented 5 months ago

Most probably that's the same as https://github.com/megahertz/react-simple-wysiwyg/issues/31

Nigro69 commented 5 months ago

Okay got it. Thanks for your time,