Save enabled only in design mode #817
Labels
good first issue
Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request.
status:confirmed
An issue confirmed by the development team.
support
An issue reported by a commercially licensed client.
type:bug
A bug.
Milestone
Are you reporting a feature request or a bug?
Bug
Check if the issue is already reported
https://dev.ckeditor.com/ticket/8354
Provide detailed reproduction steps (if any)
Expected result
Saving with toolbar button should be possible in wysiwyg and source mode.
Actual result
Saving with toolbar button is only possible in wysiwyg mode.
Other details
Initially this plugin was supposed to work in wysiwyg and source:
https://dev.ckeditor.com/ticket/2836#comment:14
https://dev.ckeditor.com/attachment/ticket/2836/2836_6.patch
but it has most likely been made to work in wysiwyg only by mistake:
https://dev.ckeditor.com/ticket/8354
https://dev.ckeditor.com/changeset/3285
Except for this "won't fix" ticket https://dev.ckeditor.com/ticket/10902, I haven't found any problems related to it.
Setting both modes to be dependent on form existence should fix this problem:
command.modes = { wysiwyg: !!( editor.element.$.form ), source: !!( editor.element.$.form ) };
The text was updated successfully, but these errors were encountered: