Hi keenthemes,
I choose classic editor : <a>https://preview.keenthemes.com/metronic8/demo1/documentation/editors/ckeditor/classic.html</a>
and now I wanted to add additional toolbar button to the CKEditor.
I did this as seen :
var KTFormsCKEditorClassic={
init:function(){
ClassicEditor
.create( document.querySelector( '.kt_ckeditor_document' ),
{
toolbar: [
"alignment", "heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","uploadImage","blockQuote","insertTable","mediaEmbed","undo","redo"
]
}
)
.then((o=>{console.log(o)}))
.catch((o=>{console.error(o)}))
}
};
KTUtil.onDOMContentLoaded((
function(){
KTFormsCKEditorClassic.init()
})
);
But the toolbar stays the same as the default, any idea how we can achieve that, like you did in CKEditor Document edition in documentation ?
like here :
<a>https://preview.keenthemes.com/metronic8/demo1/documentation/editors/ckeditor/document.html</a>
thank you
Hi,
Sorry for the late reply. I hope you figured it out already
Anyways if you need to use other features of CKeditor you will need to include them in the gulp config/webback config and compile it to make it available globally.
Regards.
I'm interested about "allignement" and "font size".
I did add "allignement" avonve but doesn't work.