This issue has been created
There are 4 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c7c7688c-a3b9-45b6-8f99-14bd2c830836 XWIKI-22612 Open

Can't use inline style without selecting the text first

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4db70c74-fee7-468f-8352-df2993c4e79d Marius Dumitru Florea created this issue on 28/Oct/24 09:33
 
Summary: Can't use inline style without selecting the text first
Issue Type: cid:jira-generated-image-avatar-c7c7688c-a3b9-45b6-8f99-14bd2c830836 Bug
Affects Versions: 15.10.13
Assignee: Unassigned
Components: CKEditor, Realtime
Created: 28/Oct/24 09:33
Priority: cid:jira-generated-image-static-major-3852d1fc-0ef7-4781-84f5-ab315845fce6 Major
Reporter: Marius Dumitru Florea
Description:

Follow these steps to reproduce:

  • edit the same wiki page in realtime using two browser tabs/windows (can be with the same user)
  • in the first editor, use Ctrl+B to switch to bold style BUT don't type anything yet (you can use other inline styles also)
  • in the second editor type something, can be on a different line
  • switch back to the first editor and wait for the change made in the second editor to arrive, then type something

Expected: the text typed in the last steps is bold
Actual: the typed text is not bold, i.e. the inline style was lost when the remote changed was received

 
 

4 updates

 
cid:jira-generated-image-avatar-4db70c74-fee7-468f-8352-df2993c4e79d Changes by Marius Dumitru Florea on 28/Oct/24 09:34
 
Fix Version: 16.10.0-rc-1
Fix Version: 15.10.14
Fix Version: 16.4.5
Assignee: Marius Dumitru Florea
 
 

1 comment

 
cid:jira-generated-image-avatar-4db70c74-fee7-468f-8352-df2993c4e79d Marius Dumitru Florea on 28/Oct/24 09:38
 

The problem is that CKEditor filters out empty elements when returning the edited content. This is fine when the content is saved, but not when the content is synchronized with the other editors in the realtime session. We need to introduce a flag to prevent the editor from removing the empty elements from the output HTML when this HTML is used for realtime synchronization.