@itshixun/qckeditor-vue2 1.1.8 → 1.1.9

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.
package/dist/index.css CHANGED
@@ -7,4 +7,4 @@
7
7
  Maintainer: @ericwbailey
8
8
 
9
9
  Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
10
- */.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}.ck-powered-by{display:none!important}.ck-content{--ck-content-font-size: 14px;--ck-padding-inline-start: 2em}.ck-content p{margin-block-start:var(--ck-spacing-standard, .8em)!important;margin-block-end:var(--ck-spacing-standard, .8em)!important}.ck-content ul,.ck-content ol{margin-block-start:var(--ck-spacing-standard, .8em)!important;margin-block-end:var(--ck-spacing-standard, .8em)!important;padding-inline-start:var(--ck-padding-inline-start, 2em)!important}.ck-content h1{font-size:28px}.ck-content h2{font-size:22px}.ck-content h3{font-size:20px}.ck-content h4{font-size:18px}.ck-content h5{font-size:16px}.ck.ck-button.ck-heading_heading1 .ck-button__label{font-size:28px}.ck.ck-button.ck-heading_heading2 .ck-button__label{font-size:22px}.ck.ck-button.ck-heading_heading3 .ck-button__label{font-size:20px}.ck.ck-button.ck-heading_heading4 .ck-button__label{font-size:18px}.ck.ck-button.ck-heading_heading5 .ck-button__label{font-size:16px}.qck-content{overflow:auto;padding:0 var(--ck-spacing-standard, .8em)}.qck-content.qck-content-trim-margin>p:first-child{margin-block-start:0!important}.qck-content.qck-content-trim-margin>p:last-child{margin-block-end:0!important}.qck-content .katex{font-size:1em}.qck-content pre:has(code.hljs){padding:0;border:none}.qck-content pre code.hljs{border-radius:4px;background-color:#2b2b2b}.q-editor-pro-container{position:relative;width:100%}.q-content-wrapper{line-height:1.75em;cursor:text;background-color:var(--q-content-bg, rgb(0 0 0 / 2%));border:1px solid rgb(0 0 0 / 5%);border-radius:var(--ck-border-radius, 4px);transition:background-color .3s ease-in-out}.q-content-wrapper:hover{background-color:var(--q-content-bg-hover, rgb(0 0 0 / 4%));border:1px dashed rgb(0 0 0 / 20%)}.q-editor-pro-container.has-min-height .ck-editor{min-height:var(--ck-min-height);display:flex;flex-direction:column}.q-editor-pro-container.has-min-height .ck-editor__main{flex:1;display:flex;flex-direction:column}.q-editor-pro-container.has-min-height .ck-editor__editable{flex:1}.h-full\!{height:100%!important}.w-full{width:100%}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-between{justify-content:space-between}.opacity-50{opacity:.5}.ck-body-wrapper{position:relative;z-index:var(--q-ck-body-wrapper-z-index, 3001)}.marker-default{text-indent:0em;padding:0 4px;font-size:.9em;margin:0 2px;display:inline-block;border-radius:6px;border:none;color:#217aff;background-color:#e9f2ff}.q-image-viewer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d9;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.q-image-viewer-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;color:#fff}.q-image-viewer-counter{font-size:14px;opacity:.85}.q-image-viewer-toolbar{display:flex;gap:8px}.q-image-viewer-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:4px;background:#ffffff1f;color:#fff;cursor:pointer}.q-image-viewer-btn:hover{background:#ffffff3d}.q-image-viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer;z-index:1}.q-image-viewer-arrow:hover{background:#ffffff3d}.q-image-viewer-arrow-prev{left:16px}.q-image-viewer-arrow-next{right:16px}.q-image-viewer-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.q-image-viewer-img{max-width:90vw;max-height:80vh;transition:transform .15s ease-out}.q-image-viewer-img.is-draggable{cursor:grab}.q-image-viewer-navbar{position:absolute;bottom:0;left:0;right:0;display:flex;gap:8px;justify-content:center;padding:10px 16px;overflow-x:auto}.q-image-viewer-thumb{width:48px;height:48px;object-fit:cover;border-radius:4px;opacity:.5;cursor:pointer;border:2px solid transparent}.q-image-viewer-thumb.is-active{opacity:1;border-color:#fff}.qck-content-image-preview img:not(.q-image-viewer-img):not(.q-image-viewer-thumb){cursor:zoom-in}.q-ckeditor--document{display:flex;flex-direction:column;height:100%}.q-ckeditor__toolbar{flex-shrink:0}.q-ckeditor.q-ckeditor--document>.ck-editor__editable{flex:1;min-height:0;overflow-y:auto}.ck.ck-editor__editable_inline{padding:0 var(--ck-spacing-standard);border:1px solid var(--ck-color-base-border)}
10
+ */.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}.ck-powered-by{display:none!important}.ck-content{--ck-content-font-size: 14px;--ck-padding-inline-start: 2em}.ck-content p{margin-block-start:var(--ck-spacing-standard, .8em)!important;margin-block-end:var(--ck-spacing-standard, .8em)!important}.ck-content ul,.ck-content ol{margin-block-start:var(--ck-spacing-standard, .8em)!important;margin-block-end:var(--ck-spacing-standard, .8em)!important;padding-inline-start:var(--ck-padding-inline-start, 2em)!important}.ck-content h1{font-size:28px}.ck-content h2{font-size:22px}.ck-content h3{font-size:20px}.ck-content h4{font-size:18px}.ck-content h5{font-size:16px}.ck.ck-button.ck-heading_heading1 .ck-button__label{font-size:28px}.ck.ck-button.ck-heading_heading2 .ck-button__label{font-size:22px}.ck.ck-button.ck-heading_heading3 .ck-button__label{font-size:20px}.ck.ck-button.ck-heading_heading4 .ck-button__label{font-size:18px}.ck.ck-button.ck-heading_heading5 .ck-button__label{font-size:16px}.qck-content{overflow:auto;padding:0 var(--ck-spacing-standard, .8em)}.qck-content.qck-content-trim-margin>p:first-child{margin-block-start:0!important}.qck-content.qck-content-trim-margin>p:last-child{margin-block-end:0!important}.qck-content .katex{font-size:1em}.qck-content pre:has(code.hljs){padding:0;border:none}.qck-content pre code.hljs{border-radius:4px;background-color:#2b2b2b}.q-editor-pro-container{position:relative;width:100%}.q-content-wrapper{line-height:1.75em;cursor:text;background-color:var(--q-content-bg, rgb(0 0 0 / 2%));border:1px solid rgb(0 0 0 / 5%);border-radius:var(--ck-border-radius, 4px);transition:background-color .3s ease-in-out}.q-content-wrapper:hover{background-color:var(--q-content-bg-hover, rgb(0 0 0 / 4%));border:1px dashed rgb(0 0 0 / 20%)}.q-editor-pro-container.has-min-height .ck-editor{min-height:var(--ck-min-height);display:flex;flex-direction:column}.q-editor-pro-container.has-min-height .ck-editor__main{flex:1;display:flex;flex-direction:column}.q-editor-pro-container.has-min-height .ck-editor__editable{flex:1}.h-full\!{height:100%!important}.w-full{width:100%}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-between{justify-content:space-between}.opacity-50{opacity:.5}.ck-body-wrapper{position:relative;z-index:var(--q-ck-body-wrapper-z-index, 3001)}.marker-default{text-indent:0em;padding:0 4px;font-size:.9em;margin:0 2px;display:inline-block;border-radius:6px;border:none;color:#217aff;background-color:#e9f2ff}.q-image-viewer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d9;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.q-image-viewer-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;color:#fff}.q-image-viewer-counter{font-size:14px;opacity:.85}.q-image-viewer-toolbar{display:flex;gap:8px}.q-image-viewer-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:4px;background:#ffffff1f;color:#fff;cursor:pointer}.q-image-viewer-btn:hover{background:#ffffff3d}.q-image-viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer;z-index:1}.q-image-viewer-arrow:hover{background:#ffffff3d}.q-image-viewer-arrow-prev{left:16px}.q-image-viewer-arrow-next{right:16px}.q-image-viewer-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.q-image-viewer-img{max-width:90vw;max-height:80vh;transition:transform .15s ease-out}.q-image-viewer-img.is-draggable{cursor:grab}.q-image-viewer-navbar{position:absolute;bottom:0;left:0;right:0;display:flex;gap:8px;justify-content:center;padding:10px 16px;overflow-x:auto}.q-image-viewer-thumb{width:48px;height:48px;object-fit:cover;border-radius:4px;opacity:.5;cursor:pointer;border:2px solid transparent}.q-image-viewer-thumb.is-active{opacity:1;border-color:#fff}.qck-content-image-preview img:not(.q-image-viewer-img):not(.q-image-viewer-thumb){cursor:zoom-in}.q-ckeditor--document{display:flex;flex-direction:column;height:100%}.q-ckeditor__toolbar{flex-shrink:0}.q-ckeditor.q-ckeditor--document>.ck-editor__editable{flex:1;min-height:0;overflow-y:auto}.q-ckeditor--fit{height:100%}.q-ckeditor--fit>.ck-editor__main>.ck-editor__editable{height:100%;overflow-y:auto}.ck.ck-editor__editable_inline{padding:0 var(--ck-spacing-standard);border:1px solid var(--ck-color-base-border)}
package/dist/index.d.ts CHANGED
@@ -132,12 +132,16 @@ declare const _default: {
132
132
  type: import('vue').PropType<(data: string) => string>;
133
133
  default: (data: string) => string;
134
134
  };
135
+ fitHeight: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
135
139
  }, {
136
140
  normalizedType: import('vue').ComputedRef<import('.').QEditorType>;
137
141
  editorClass: import('vue').ComputedRef<typeof import('ckeditor5').InlineEditor | typeof import('ckeditor5').DecoupledEditor | typeof import('ckeditor5').ClassicEditor>;
138
- }, {}, {}, {
139
- onEditorReady(editor: import('.').QEditorInstance): void;
140
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
142
+ onEditorReady: (editor: import('.').QEditorInstance) => void;
143
+ onEditorDestroy: () => void;
144
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
141
145
  type: {
142
146
  type: import('vue').PropType<import('.').QEditorType>;
143
147
  default: string;
@@ -170,6 +174,10 @@ declare const _default: {
170
174
  type: import('vue').PropType<(data: string) => string>;
171
175
  default: (data: string) => string;
172
176
  };
177
+ fitHeight: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
173
181
  }>>, {
174
182
  value: string;
175
183
  config: import('ckeditor5').EditorConfig;
@@ -179,6 +187,7 @@ declare const _default: {
179
187
  dataNormalizer: (data: string) => string;
180
188
  modelValue: string;
181
189
  type: import('.').QEditorType;
190
+ fitHeight: boolean;
182
191
  }>;
183
192
  QCKClassic: import('vue').DefineComponent<{
184
193
  value: {
@@ -209,6 +218,10 @@ declare const _default: {
209
218
  type: import('vue').PropType<(data: string) => string>;
210
219
  default: (data: string) => string;
211
220
  };
221
+ fitHeight: {
222
+ type: BooleanConstructor;
223
+ default: boolean;
224
+ };
212
225
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
213
226
  value: {
214
227
  type: StringConstructor;
@@ -238,6 +251,10 @@ declare const _default: {
238
251
  type: import('vue').PropType<(data: string) => string>;
239
252
  default: (data: string) => string;
240
253
  };
254
+ fitHeight: {
255
+ type: BooleanConstructor;
256
+ default: boolean;
257
+ };
241
258
  }>>, {
242
259
  value: string;
243
260
  config: import('ckeditor5').EditorConfig;
@@ -246,6 +263,7 @@ declare const _default: {
246
263
  disableTwoWayDataBinding: boolean;
247
264
  dataNormalizer: (data: string) => string;
248
265
  modelValue: string;
266
+ fitHeight: boolean;
249
267
  }>;
250
268
  QCKEditorPro: import('vue').DefineComponent<{
251
269
  value: {
@@ -462,6 +480,7 @@ declare const _default: {
462
480
  dataNormalizer: (data: string) => string;
463
481
  modelValue: string;
464
482
  placeholder: string;
483
+ fitHeight: boolean;
465
484
  content: string;
466
485
  containerClass: string;
467
486
  sanitize: boolean;
@@ -471,7 +490,6 @@ declare const _default: {
471
490
  disableExit: boolean;
472
491
  minHeight: number;
473
492
  height: number;
474
- fitHeight: boolean;
475
493
  contentBgColor: string;
476
494
  contentBgHoverColor: string;
477
495
  borderRadius: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAG5E,YAAY,EAAE,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGlH,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtH,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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