Skip to content

Commit

Permalink
Vue 2.7 extend Polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerodLee committed Jan 16, 2025
1 parent 19c8b80 commit 0575630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue2-froala",
"version": "0.1.2",
"version": "0.1.3",
"description": "Vue2 component for Froala WYSIWYG HTML Rich Text Editor. 适用于vue2版本的Froala富文本(所见即所得)编辑器",
"author": "https://github.com/ZerodLee",
"license": "https://froala.com/wysiwyg-editor/terms/",
Expand Down
4 changes: 3 additions & 1 deletion src/components/froala-extend.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Vue from 'vue';
import FroalaEditor from 'froala-editor';

export default Vue.extend({
const VuePolyfill = Vue.default && Vue.default.extend ? Vue.default : Vue;

export default VuePolyfill.extend({
name: 'froala',
props: ['tag', 'value', 'config', 'onManualControllerReady', 'modelValue'],
emits: ['update:value', 'manual-controller-ready'],
Expand Down

0 comments on commit 0575630

Please sign in to comment.