CKedit document source view

Petrossi's picture

in CKeditor it's impossible now to show the original source code for a e newly created document: how is it possible to add this option to the toolbar of the editor?

mohan's picture

CKeditor document source view

 

Hi,
 
Kindly do the following to add source code to the document ckeditor
 
1. Edit the file main/inc/lib/ckeditor/config.js
2. At line no 69 you will see the code like below
 
{ name: 'document5', items : [
'asciimath','Table','SpecialChar','Styles','Format','FontSize','Preview','Maximize']
}
 
3. Add 'Source' in the same line at the last like below
 
{ name: 'document5', items : [
'asciimath','Table','SpecialChar','Styles','Format','FontSize','Preview','Maximize','Source']
}
 
4. Save the file and you can see the source icon in the document ckeditor.
 
Thanking you,