js-kompo-utils 1.0.30 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,8 +62,11 @@ export default {
62
62
  customTextInsertion(){ return this.$_config('customTextInsertion') },
63
63
  },
64
64
  methods: {
65
- onReady(editor, el) {
66
- el.ckInstance = editor;
65
+ onReady(editor) {
66
+ const el = editor.sourceElement
67
+ if (!el) return
68
+
69
+ el.ckInstance = editor
67
70
 
68
71
  el.typeSimulated = async (text, options) => {
69
72
  const {
@@ -190,16 +193,6 @@ export default {
190
193
  this.focus()
191
194
  },
192
195
  created(){
193
- const originalCreate = ClassicEditor.create;
194
- const self = this;
195
- ClassicEditor.create = function (element, config) {
196
- return originalCreate.call(this, element, config).then(editor => {
197
- element.ckeditorInstance = editor;
198
- self.onReady(editor, element);
199
- return editor;
200
- });
201
- };
202
-
203
196
  let extraPlugins = [
204
197
  Essentials,
205
198
  Alignment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-kompo-utils",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
5
  "main": "app.js",
6
6
  "scripts": {