Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#14409 closed Bug (invalid)

format lost when using ckeditor

Reported by: Liqiug Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Steps to reproduce

  1. using your demo site http://ckeditor.com/demo
  2. switch to html source
  3. paste the text in attached file

Expected result

same as open the attached html file in browser

Actual result

format lost , the "new question * " part in bottom , it should in middle

Other details (browser, OS, CKEditor version, installed plugins) ==tested with firefox , chrome and IE , latest version as your demo site

Attachments (3)

bug.zip (3.8 KB) - added by Liqiug 4 years ago.
html file , zipped to be able to upload
cke.bmp (1.4 MB) - added by Liqiug 4 years ago.
sample after ckeditor
org.bmp (1.0 MB) - added by Liqiug 4 years ago.
original sample

Change History (6)

Changed 4 years ago by Liqiug

Attachment: bug.zip added

html file , zipped to be able to upload

Changed 4 years ago by Liqiug

Attachment: cke.bmp added

sample after ckeditor

Changed 4 years ago by Liqiug

Attachment: org.bmp added

original sample

comment:2 Changed 3 years ago by Liqiug

Hi, I have followed all document and I dont think this is problem with allowcontent

1 , I have download ckeditor and setup with allowcontent=true , that allow all normal content , it still show the error 2, I have check all html arch like <p> <li> in html , all of them are allowed when check by isallowed 3 , the format are still keeped , the problem is the sentence in wrong position , the original it is bottom of page, but after ckeditor load, it goes to middle of page , all font style , indent are keep well.

so I dont think this is ACF issue. as I dont need allowextraconent , and I cannot disallow ,

please check it again and let me know if this workable , I am happy to pay for the work or I have to choose another editor .

comment:3 Changed 3 years ago by Jakub Ś

Hi,

The issue is still invalid but I need to apologise for giving you invalid information. I didn’t check it properly. The above problem has nothing to do with ACF but it is a matter of invalid HTML.

The whole section with "Completion Instructions" is inside paragraph which is located directly inside List. The ul or ol tag only allows li elements inside. Please see the spec https://www.w3.org/TR/html-markup/ul.html#ul. You can't put paragraphs directly into the list.

CKEditor seeing that fixes HTML and moves this paragraph out of the list which is correct.

You need to pass correct HTML (p below ul) and it will work correctly.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy