free-fe-core-modules 0.0.35 → 0.0.36

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.
@@ -31,28 +31,32 @@
31
31
  v-if="!Field.ReadOnly"
32
32
  ref="tiny"
33
33
  api-key="wh7g3etkwrso25e0wcpqrx8uvoa51toag3j92mllkajtg1xb"
34
- tinymce-script-src="tiny/tiny_bk.js"
34
+ tinymce-script-src="tiny/tiny7.js"
35
35
  :init="{
36
- language_url: 'tiny/langs/zh_cn.js',
37
- language: 'zh_cn',
38
- plugins: Field.ReadOnly ? [] : this.plugins,
39
- menubar: Field.ReadOnly ? [] : this.menubar,
40
- toolbar: Field.ReadOnly ? '' : this.toolbar.join(' '),
41
- toolbar_mode: 'wrap',
42
- importcss_append: true,
43
- height: 500,
44
- image_caption: true,
45
- quickbars_selection_toolbar: Field.ReadOnly
46
- ? '' : this.quickbars_selection_toolbar.join(' '),
47
- contextmenu: Field.ReadOnly ? '' : this.contextmenu.join(' '),
48
- extended_valid_elements:'efield',
49
- setup: tinySetup,
50
- default_link_target: (Field && Field.Options && Field.Options.LinkTarget) || '_blank',
51
-
52
- automatic_uploads: true,
53
- images_upload_url: '/api/upload',
54
- images_reuse_filename: true,
55
- images_upload_handler,
36
+ language_url: 'tiny/langs/zh_cn.js',
37
+ language: 'zh_cn',
38
+ plugins: Field.ReadOnly ? [] : this.plugins,
39
+ menubar: Field.ReadOnly ? [] : this.menubar,
40
+ toolbar: Field.ReadOnly ? '' : this.toolbar.join(' '),
41
+ toolbar_mode: 'wrap',
42
+ importcss_append: true,
43
+ height: 500,
44
+ image_caption: true,
45
+ quickbars_selection_toolbar: Field.ReadOnly
46
+ ? '' : this.quickbars_selection_toolbar.join(' '),
47
+ contextmenu: Field.ReadOnly ? '' : this.contextmenu.join(' '),
48
+ extended_valid_elements:'efield',
49
+ setup: tinySetup,
50
+ default_link_target: (Field && Field.Options && Field.Options.LinkTarget) || '_blank',
51
+
52
+ automatic_uploads: true,
53
+ images_upload_url: '/api/upload',
54
+ images_reuse_filename: true,
55
+ images_upload_handler,
56
+
57
+ skin: isDark ? 'oxide-dark' : 'oxide',
58
+ content_css: isDark ? 'dark' : '',
59
+ promotion: false,
56
60
  }"
57
61
  initial-value
58
62
  model-events
@@ -69,6 +73,7 @@
69
73
 
70
74
  <script>
71
75
  import { defineComponent, watchEffect, ref, getCurrentInstance } from 'vue';
76
+ import { useQuasar } from 'quasar';
72
77
  import tiny from '@tinymce/tinymce-vue';
73
78
  import { fileSizeStrToNumber } from '../composible/useFileSizeUtils';
74
79
  import { useFreeField, freeFieldProps } from '../composible/useFreeField';
@@ -121,6 +126,7 @@ export default defineComponent({
121
126
  },
122
127
  setup(props, { expose, emit }) {
123
128
  const { proxy:vm } = getCurrentInstance();
129
+ const $q = useQuasar();
124
130
 
125
131
  if (!props.Field) return {};
126
132
 
@@ -136,9 +142,10 @@ export default defineComponent({
136
142
 
137
143
  const isValid = ref(true);
138
144
  const plugins = [
139
- 'print',
145
+ // 'print',
140
146
  // 'preview',
141
- 'paste',
147
+ // 'paste',
148
+ // 'powerpaste',
142
149
  // 'importcss',
143
150
  // 'searchreplace',
144
151
  // 'autolink',
@@ -156,7 +163,7 @@ export default defineComponent({
156
163
  // 'codesample',
157
164
  'table',
158
165
  // 'charmap',
159
- 'hr',
166
+ // 'hr',
160
167
  // 'pagebreak',
161
168
  // 'nonbreaking',
162
169
  // 'anchor',
@@ -355,6 +362,8 @@ export default defineComponent({
355
362
  quickbars_selection_toolbar,
356
363
  contextmenu,
357
364
 
365
+ isDark: $q.dark.isActive,
366
+
358
367
  images_upload_handler: (
359
368
  blobInfo,
360
369
  success,
@@ -407,8 +416,6 @@ export default defineComponent({
407
416
  // z-index: 6001 !important
408
417
 
409
418
  .free-field-rich
410
- .tox-statusbar__branding
411
- display: none
412
419
  .tox-tinymce
413
420
  width: auto
414
421
  min-width: 0
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "free-fe-core-modules",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/freeeis/free-fe-core-modules.git",
6
6
  "author": "zhiquan",
7
7
  "license": "UNLICENSED",
8
8
  "dependencies": {
9
- "@tinymce/tinymce-vue": "^5.1.0"
9
+ "@tinymce/tinymce-vue": "^5.1.1"
10
10
  }
11
11
  }