Open hugoA19 opened 3 years ago
Hi @xdan , Can you please help. I also want to accomplish something similar. I tried some way around unfortunately its giving an issue posted below.
Issue: The test cases are breaking giving the below error:
My implementeation: ` import { Jodit } from "jodit"; import JoditEditor, { IJoditEditorProps, Jodit as TJodit } from "jodit-react";
const joditConfig = useMemo( () => ({ toolbar: true, controls: { paragraph: { list: Jodit.atom({ p: "Pharagraph", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", }), }, }, }), [] );
<JoditEditor config={joditConfig} /> `
I am using React + typescript, Jest
The implementation woks correct however the test cases are breaking.
It would be very greatful of you @xdan if you could provide your valuable feedback.
Thanks in advance.
Hi, when i do this :
controls:{font:{list:Jodit.atom({ "Arial,Helvetica,sans-serif": "Arial", "Georgia,serif": "Georgia", "Impact,Charcoal,sans-serif": "Impact", "Tahoma,Geneva,sans-serif": "Tahoma", "'Times New Roman',Times,serif": "Times New Roman", "Courier New,sans-serif": "Courier New" })}}
the font are merge to the current list. But what i want is to create a new list and replace the older. I have try solution from classic jodit but not working. https://github.com/xdan/jodit/issues/586 https://github.com/xdan/jodit/issues/230 Do you have any idea ?