Click here to Skip to main content
15,893,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

In my mvc application form i have 2 tabs(added partial view for the tabs) and both contain ckeditor.
I have added ckeditor in partial view.
the ckeditor of 1st tab does not load and gives error : TypeError: a.ui.space(...) is null

i am calling replace function for ckeditor in partial view

C#
$(document).ready(function () {
       if (CKEDITOR.instances && CKEDITOR.instances['Description']) {
           var instance = CKEDITOR.instances['Description'];
           if (instance) {
               CKEDITOR.remove(instance);
           }
       }
       CKEDITOR.replace('Description', {
           contentsLangDirection: 'ltr'
       });

   });


what can be the issue ..Pls help
Posted
Comments
Nathan Minier 18-Nov-14 7:27am    
Are the views in different Areas? If so, make sure that you either add a uising to your view or add your namespace to the views/web.config folder in each area.
Member 9773317 19-Nov-14 0:18am    
No views are in same area and there is no issue for loading the views..views are loaded properly just ckeditor is not loaded

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900