brickyeditor icon indicating copy to clipboard operation
brickyeditor copied to clipboard

ckeditor / summernote editor

Open rakucmr opened this issue 6 years ago • 5 comments

can we use with other html editor?

rakucmr avatar Nov 10 '17 14:11 rakucmr

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.

yakovlevga avatar Nov 13 '17 09:11 yakovlevga

I know it is not on your priority list but ability to use with CKEditor would help us in our classroom much:)

oleteacher avatar Dec 13 '17 14:12 oleteacher

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?

yakovlevga avatar Dec 14 '17 09:12 yakovlevga

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.

oleteacher avatar Dec 14 '17 18:12 oleteacher

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');
  });
}

adaniello avatar Sep 28 '18 12:09 adaniello