Page 1 of 1

SunEditor not saving changes

Posted: Sun Feb 04, 2024 1:01 pm
by wwonderfull
I think the SunEditor in editable content does not save any changes but when SummerNote is used it did save the changes. Can anyone check this problem and confirm?

Re: SunEditor not saving changes

Posted: Sun Feb 04, 2024 3:33 pm
by Pablo
SunEditor works a little different than the other editors.
You will have to enable the 'Save' button in the toolbar.
You can do this via Editor Settings.

For example:

Code: Select all

 buttonList: [
        ['undo', 'redo'],
        ['font', 'fontSize', 'formatBlock'],
        ['bold', 'underline', 'italic', 'strike', 'subscript', 'superscript'],
        ['fontColor', 'hiliteColor', 'textStyle'],
        ['save']]
Then clicking the 'Save' button will copy the content to the input.

Re: SunEditor not saving changes

Posted: Sun Feb 04, 2024 5:34 pm
by wwonderfull
Yes, that worked pablo thanks for the input :)