Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Internal: Changed the way BalloonToolbar is injected into the plugin …
Browse files Browse the repository at this point in the history
…list because Config#get started cloning returned values (see ckeditor/ckeditor5-utils#257).
  • Loading branch information
oleq committed Dec 19, 2018
1 parent 20e9459 commit 6e1ee44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ballooneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export default class BalloonEditor extends Editor {
this.sourceElement = sourceElementOrData;
}

this.config.get( 'plugins' ).push( BalloonToolbar );
const plugins = this.config.get( 'plugins' );
plugins.push( BalloonToolbar );
this.config.set( 'plugins', plugins );

this.config.define( 'balloonToolbar', this.config.get( 'toolbar' ) );

this.data.processor = new HtmlDataProcessor();
Expand Down

0 comments on commit 6e1ee44

Please sign in to comment.