Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
139
rated 0 times [  141] [ 2]  / answers: 1 / hits: 15475  / 10 Years ago, thu, july 10, 2014, 12:00:00

Html:



<textarea name=Editor class=ckeditor id=aboutme>@Model.Content</textarea>


Javascript:



<script>
config.removePlugins = 'elementspath,save,font';
</script>


When page load , i want to disable all ckeditor plugins.I tried above code however it did not work for me.



How can i remove plugins by javascript on load of page ?



Any help appreciates.
Thanks.


More From » ckeditor

 Answers
5

You can define a list of plugins to load (CKEDITOR.config#plugins):



config.plugins = 'wysiwygarea,toolbar,basicstyles,...';


But you can also restrict existing (default) list of plugins (CKEDITOR.config#removePlugins):



config.removePlugins = 'link,...';


Both options can be defined globally (config.js) or for a particular editor instance like



CKEDITOR.replace( 'editor1', {
removePlugins: 'link'
} );


Please refer to official Setting Configuration guide to know more.



Note: Since CKEditor 4.1, the presence of a plugin determines whether certain type content associated with that plugin is allowed or disallowed. Read more about Advanced Content Filter.


[#70251] Tuesday, July 8, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cody

Total Points: 679
Total Questions: 111
Total Answers: 111

Location: Czech Republic
Member since Thu, Aug 11, 2022
2 Years ago
;