You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run editor.plugins.get('SourceEditing').isEnabled = false.
Source Editing plugin gets disabled.
Run editor.plugins.get('SourceEditing').isSourceEditingMode = true.
Editor is switched to source editing mode.
Types something in the editor.
Run editor.plugins.get('SourceEditing').isSourceEditingMode = false.
Screen.Recording.2025-01-10.at.11.23.26.mov
✔️ Expected result
I would expect that plugin will not react to switching to source mode via public API when being disabled.
❌ Actual result
It's possible to switch to source mode while plugin is disabled. What's more, modifying content in source mode and switching back, propagates it, modifying the content in WYSIWYG mode - all while Source Editing plugin is disabled.
Additional thoughts
I know that both isEnabled and isSourceEditingMode are public API so both can be easily changed by 3rd-party integration/action. Still, the behavior seems inconsistent and may be confusing for someone trying to integrate with it.
❓ Possible solution
...
📃 Other details
Browser: Chrome
OS: macOS
First affected CKEditor version: Not sure, checked on latest stable 44.1.0
Installed CKEditor plugins: SourceEditing
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered:
📝 Provide detailed reproduction steps (if any)
editor.plugins.get('SourceEditing').isEnabled = false
.editor.plugins.get('SourceEditing').isSourceEditingMode = true
.editor.plugins.get('SourceEditing').isSourceEditingMode = false
.Screen.Recording.2025-01-10.at.11.23.26.mov
✔️ Expected result
I would expect that plugin will not react to switching to source mode via public API when being disabled.
❌ Actual result
It's possible to switch to source mode while plugin is disabled. What's more, modifying content in source mode and switching back, propagates it, modifying the content in WYSIWYG mode - all while Source Editing plugin is disabled.
Additional thoughts
I know that both
isEnabled
andisSourceEditingMode
are public API so both can be easily changed by 3rd-party integration/action. Still, the behavior seems inconsistent and may be confusing for someone trying to integrate with it.❓ Possible solution
...
📃 Other details
44.1.0
SourceEditing
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: