Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckeditor / summernote editor #9

Open
rakucmr opened this issue Nov 10, 2017 · 5 comments
Open

ckeditor / summernote editor #9

rakucmr opened this issue Nov 10, 2017 · 5 comments

Comments

@rakucmr
Copy link

rakucmr commented Nov 10, 2017

can we use with other html editor?

@yakovlevga
Copy link
Owner

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.

@oleteacher
Copy link
Contributor

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

@yakovlevga
Copy link
Owner

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?

@oleteacher
Copy link
Contributor

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.

@adaniello
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants