#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
- using your demo site http://ckeditor.com/demo
- switch to html source
- 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)
Change History (6)
Changed 9 years ago by
comment:1 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.5.7 |
Please get familair with ACF:
http://docs.ckeditor.com/#!/guide/dev_acf
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/guide/dev_disallowed_content
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
comment:2 Changed 9 years ago by
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 9 years ago by
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.
html file , zipped to be able to upload