By : leaui Published On Monday, March 30, 2015, 01:49 In JavaScript
CKEditor has no math formula plugin default. This plugin is a formula plugin called “CKEditor4 Formula Editor”, you can use it in your CKEditor to insert and update math formula easily.
config.toolbar = [
['LeauiFormula'], ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
[ 'FontSize', 'TextColor', 'BGColor']
];
config.extraPlugins = 'leaui_formula';Or you can update your ckeditor configuration when create it:
CKEDITOR.replace( 'editor1' , {
toolbar: [
['LeauiFormula'], ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
[ 'FontSize', 'TextColor', 'BGColor']
],
extraPlugins: 'leaui_formula'
});