brickyeditor
brickyeditor copied to clipboard
ckeditor / summernote editor
can we use with other html editor?
Hi! Currently it doesn't support any integration with other editors. But you could use html generated by brickyeditor as you need. Maybe in future releases I will add CKEditor support as plugin or Summernote as custom inline html editor, but now it's not priority. As I know, some CKEditor plugins already allow you to predifine templates like this. Perhaps this will suit you as solution.
I know it is not on your priority list but ability to use with CKEditor would help us in our classroom much:)
I will try to examine this question in near future. By the way, how do you imagine this integration? Unfortunately, I have no any expertise in CKEditor for a long time. Is it must add some additional panel with templates, which will add raw html right into CKEditor worksheet? Or did you mean possibility to edit inline html in blocks with help of CKEditor instead of current built-in html tools?
I cannot speak for @raku and do not wish to take over his thread here...
Adding content into CKEditor worksheet/ work area would be ideal for school project. But, inline would at least allow us to use some extra CKEditor plugins.
For now i solve by adding class bre-editable
in template, then calling Summernote instance in onBlockSelect() and destroy it in onBlockDeselect().
For example:
onBlockSelect: function(block) {
$('.bre-selected .bre-editable').summernote({
airMode: true
});
},
onBlockDeselect: function(block) {
$('.bre-editable').each(function( index ) {
$(this).summernote('destroy');
});
}