I have installed and uninstalled CKEditor List Style several times. Every time it is installed, CKEditor stops loading in Basic and Restricted HTML formats—even without making any changes in these formats.

CommentFileSizeAuthor
#9 Console.PNG26.84 KBwhitesun
#7 Capture.PNG145.91 KBwhitesun

Comments

whitesun created an issue. See original summary.

gaurav.kapoor’s picture

Check browser console for exact errors and Reports will have a log message. Can you share that.

whitesun’s picture

Please give me a tip, how to do what you are asking for? I have a limited knowledge of computing.

gaurav.kapoor’s picture

Hi @whitesun , so whenever you are trying to access restricted or basic html , open browser console (press F12 for most of the browser) to check for Javascript errors , if there is no error in Console , go to http://localhost:8888/drupal8/admin/reports/dblog and check for any error message because of Ckeditor.

whitesun’s picture

Hi Gaurav
For giving you the information, I reinstalled CKEditor liststyle module and at node/edit page, the basic HTML was not working as usual. I pressed F12, but could not follow much; so I have taken a screenshot, but do not know how to attach it here. Can you suggest some means of communication?

Second point: http://localhost:8888/drupal8/admin/reports/dblog could not be reached.

gaurav.kapoor’s picture

You can upload a screenshot through files tab , Choose File , Press Upload and Save your comment.You can copy/paste error as well in the comments.

whitesun’s picture

StatusFileSize
new145.91 KB

Hi Gaurav
I am uploading the file.

gaurav.kapoor’s picture

In the pick , you have uploaded elements tab , but errors are displayed under console tab. Just check if console or watchdog table or reports tab under configuration has any errors when you use Ckeditor in basic or restricted mode.

whitesun’s picture

StatusFileSize
new26.84 KB

Hi Gaurav
I am hopeful that now you are getting the output what you wanted. Please update us about what you have found out.

rimibhagat’s picture

Hi,
I am also facing this issue. In basic page the ck editor is not loading.
Any patch for it?

krlucas’s picture

I saw the same errors as #9. Turns out I was using the wrong version of the List Style plugin: 4.6.2 which is not compatible with the CKEditor that ships with Drupal 8.2. When I downgraded the plug-in to 4.5.11 it worked.

osman’s picture

Any text format with Limit allowed HTML tags and correct faulty HTML filter enabled will strip the style attribute from ANY tags. See FilterHtml class:

The 'style' and 'on*' ('onClick' etc.) attributes are always forbidden, and are removed by Xss::filter()

However, the CKEditor List Style plugin sets the list properties via inline styles.

Unfortunately this is the reason why Basic HTML and Restricted HTML filter types cannot use this feature, at least for the time being.

I explored some workarounds to the issue to no avail. Patches and suggestions are welcome.

osman’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
Status: Active » Postponed
sakonn’s picture

Hello,
Is it not possible to transform plugin to not add list style through style attribe but directly through type atrribute?
I think it would solve the problem as far as drupal si blocking only style attribute.

adamcadot’s picture

Status: Postponed » Closed (duplicate)
Related issues: +#2874952: Change code from styles to type