From d3f704a80016d0ce5b627c59f06ddd698268595c Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Thu, 9 Feb 2017 20:22:02 +0300 Subject: [PATCH] Link plugin prepare updated --- example.html | 1 + plugins/link/link.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/example.html b/example.html index 3d9d168a..8fdc6c6f 100644 --- a/example.html +++ b/example.html @@ -102,6 +102,7 @@ link: { type: 'link', iconClassname: 'ce-icon-link', + prepare: link.prepare, make: link.makeNewBlock, appendCallback: link.appendCallback, render: link.render, diff --git a/plugins/link/link.js b/plugins/link/link.js index 61168d7a..2b4c6436 100644 --- a/plugins/link/link.js +++ b/plugins/link/link.js @@ -243,7 +243,11 @@ var link = (function(link) { }; link.prepare = function (config) { + link.config = config; + + return Promise.resolve(); + }; /**