KEEP THE LANGUAGE CLASS ATTRIBUTE UNCHANGED
I encountered trouble when I needed to highlight a code within an Article using PrismJS, especially in the process of updating because once the article is published, the language class is automatically removed, to overcome this problem you might re-write the language class again and again but, it's not a practical solution because you may forget to do so. Therefore, you can change the editor configuration to always remember the language class: ๐โ๏ธ
let editor = CKEDITOR.replace('your-textarea-id');
editor.config.allowedContent = true;
AI Assistant
Choose AI provider
Text Tools
Make content clear and easy to read
Have a Question?
Get clear answers based on this content