This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d7738c16-9972-42ac-8eb0-d00f444d8758 XWIKI-23448 Open

Inconsistency in style formatting behaviour between first edition and coming to edition after save

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3db7fe95-8626-4b01-b2d3-b6234202158e LAMBLIN created this issue on 12/Aug/25 17:42
 
Summary: Inconsistency in style formatting behaviour between first edition and coming to edition after save
Issue Type: cid:jira-generated-image-avatar-d7738c16-9972-42ac-8eb0-d00f444d8758 Bug
Affects Versions: 16.10.9
Assignee: Unassigned
Components: CKEditor
Created: 12/Aug/25 17:42
Environment: Firefox or Chromium
Labels: consistency
Priority: cid:jira-generated-image-static-minor-e840ea17-7e77-4596-9b21-6ca857101ac9 Minor
Reporter: LAMBLIN
Description:

Steps to reproduce:

  • Create a brand new page with a text (first edition session) in WYSIWYG mode
  • Apply a style to this text with CKEditor (Styles > Box)
  • Then once again, apply a new style (Styles > Warning box for example)
  • See how the style is updated for the text - same box around the text, but different colour, see the source:

 

(% class="box warningmessage" %)
(((
test text
))) 

 

  • Save the page
  • Come back to edit mode (second edition session)
  • Select the text - highlighting or cursor somewhere in the line
  • Try to apply a new style (Styles > Success box for example)

Expected result: the new style is applied the same way it was applied on first edition session

Actual result: a new style is applied around the existing one, see source:

(% class="box warningmessage" %)
(((
(% class="box successmessage" %)
(((
test text
)))
))) 
 
 

2 updates

 
cid:jira-generated-image-avatar-3db7fe95-8626-4b01-b2d3-b6234202158e Changes by LAMBLIN on 12/Aug/25 17:43
 
Description: *Steps to reproduce:*
* Create a brand new page with a text (first edition session) in WYSIWYG mode
* Apply a style to this text with CKEditor (Styles > Box)
* Then once again, apply a new style (Styles > Warning box for example)
* See how the style is updated for the text - same box around the text, but different colour, see the source:

 
{code:java}
(% class="box warningmessage" %)
(((
test text
))) {code}
 
* Save the page
* Come back to
WYSIWYG edit mode (second edition session)
* Select the text - highlighting or cursor somewhere in the line
* Try to apply a new style (Styles > Success box for example)

*Expected result:* the new style is applied the same way it was applied on first edition session

*Actual result:* a new style is applied
around inside the existing one, see source:
{code:java}
(% class="box warningmessage" %)
(((
(% class="box successmessage" %)
(((
test text
)))
))) {code}
Assignee: LAMBLIN