jodit
jodit copied to clipboard
At the first time image properties are not applying
Jodit Version: 3.4.xxxxx
Browser: OS: Is React App:
const config = useMemo(() => ({
readonly: false,
showCharsCounter: false,
showWordsCounter: false,
showXPathInStatusbar: false,
height: '300',
toolbarAdaptive: false,
buttons: richTextEditorConfig(),
uploader: IMAGE_UPLOAD,
askBeforePasteFromWord: false,
askBeforePasteHTML: false,
popup: {
a: markAsAtomic([
{
name: 'eye',
tooltip: 'Open link',
exec: (editor: any, current: any) => {
const href = current.href;
if (current && href) {
editor.ow.open(href);
}
},
},
{
name: 'link',
tooltip: 'Edit link',
},
'unlink',
]),
},
}), []);
return(
{showEditor ?
<Box>
<JoditEditor
value={editorData}
config={config}
onBlur={(newContent: any) => handelRichTextContent(newContent)}
/> </Box> : <Box className={isExpandedView ? classes.editorSection : classes.minTileEditor} dangerouslySetInnerHTML={{ __html: editorData }}></Box>}
);
// A *self-contained* demonstration of the problem follows...
again second time need to click on edit icon and image properties popup will open and click on apply, then only image properties are applying
Second time need to click on edit icon, then only applying the styles
Expected behavior: At the first time image properties are should applying
Actual behavior: At the first time image properties are not applying