Search code examples
asp.net-mvc-3ckeditor

Re-Adding Bullet & Italics to CkEditor


I have inherited an MVC3 C# .Net Web App which uses CkEditor. The ability to insert bold text and italicized text has been removed from the CkEditor boxes by another developer (who is no longer here). How can I re-add the Bold & Italics functionality back into CkEditor?


Solution

  • I found the answer. Attributes of the .toolbar config property had been removed. I.e.

        toolbar: [
                { name: 'insert', items: ['Image'] },
                { name: 'tools', items: ['Maximize'] },
            ],
    

    I modified to:

        toolbar: [
                { name: 'insert', items: ['Image'] },
                { name: 'tools', items: ['Maximize'] },
                ['Bold', 'Italic', 'Underline'], ['NumberedList', 'BulletedList']
            ],
    

    Here's the Url that helped me: CkEditor Config Stuff