@itshixun/qckeditor-vue2 1.2.9 → 1.2.11

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:var(--ck-spacing-standard, .8em)}.qck-content table{max-width:100%}.ck-content.qck-content figure.table:not(.layout-table){display:block;width:fit-content;max-width:100%}.ck-content.qck-content figure.table:not(.layout-table)>table{max-width:100%}.qck-content table:not(.table){border-collapse:collapse;border-spacing:0;border:1px double hsl(0,0%,70%)}.qck-content table:not(.table)>thead>tr>th,.qck-content table:not(.table)>tfoot>tr>th,.qck-content table:not(.table)>tbody>tr>th{text-align:start;font-weight:700;background:#0000000d}.qck-content table:not(.table)>thead>tr>td,.qck-content table:not(.table)>thead>tr>th,.qck-content table:not(.table)>tfoot>tr>td,.qck-content table:not(.table)>tfoot>tr>th,.qck-content table:not(.table)>tbody>tr>td,.qck-content table:not(.table)>tbody>tr>th{min-width:2em;padding:.4em;border:1px solid hsl(0,0%,75%)}.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 code.hljs{display:block;padding:1em;overflow-x:auto;background-color:#2b2b2b;border-radius:4px}.qck-content pre:has(code.hljs){padding:0;border:none}.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.q-ckeditor--fit,.ck.ck-editor__editable.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)}.qck-content .qck-code-hidden-placeholder{display:flex;align-items:center;justify-content:center;min-height:96px;padding:16px;margin:var(--ck-spacing-standard) 0;font-style:italic;color:#fff9;background:#2b2b2b;border-radius:4px}.qck-content .qck-code-copy-host{position:relative}.qck-content .qck-code-copy-btn{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;font-size:12px;line-height:18px;color:#fff;cursor:pointer;background:#0000008c;border:none;border-radius:4px;opacity:0;transition:opacity .2s}.qck-content .qck-code-copy-btn:hover{background:#000000bf}.qck-content .qck-code-copy-host:hover .qck-code-copy-btn,.qck-content .qck-code-copy-btn:focus-visible,.qck-content .qck-code-copy-btn--success{opacity:1}.qck-content .qck-code-copy-btn--success{color:#4ade80}
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:var(--ck-spacing-standard, .8em)}.qck-content table{max-width:100%}.ck-content.qck-content figure.table:not(.layout-table){display:block;width:fit-content;max-width:100%}.ck-content.qck-content figure.table:not(.layout-table)>table{max-width:100%}.qck-content table:not(.table){border-collapse:collapse;border-spacing:0;border:1px double hsl(0,0%,70%)}.qck-content table:not(.table)>thead>tr>th,.qck-content table:not(.table)>tfoot>tr>th,.qck-content table:not(.table)>tbody>tr>th{text-align:start;font-weight:700;background:#0000000d}.qck-content table:not(.table)>thead>tr>td,.qck-content table:not(.table)>thead>tr>th,.qck-content table:not(.table)>tfoot>tr>td,.qck-content table:not(.table)>tfoot>tr>th,.qck-content table:not(.table)>tbody>tr>td,.qck-content table:not(.table)>tbody>tr>th{min-width:2em;padding:.4em;border:1px solid hsl(0,0%,75%)}.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 code.hljs{display:block;padding:1em;overflow-x:auto;background-color:#2b2b2b;border-radius:4px}.qck-content p>code.hljs,.qck-content div>code.hljs{white-space:pre-wrap}.qck-content pre:has(code.hljs){padding:0;border:none}.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.q-ckeditor--fit,.ck.ck-editor__editable.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)}.qck-content .qck-code-hidden-placeholder{display:flex;align-items:center;justify-content:center;min-height:96px;padding:16px;margin:var(--ck-spacing-standard) 0;font-style:italic;color:#fff9;background:#2b2b2b;border-radius:4px}.qck-content .qck-code-copy-host{position:relative}.qck-content .qck-code-copy-btn{position:absolute;top:8px;right:8px;z-index:1;padding:2px 8px;font-size:12px;line-height:18px;color:#fff;cursor:pointer;background:#0000008c;border:none;border-radius:4px;opacity:0;transition:opacity .2s}.qck-content .qck-code-copy-btn:hover{background:#000000bf}.qck-content .qck-code-copy-host:hover .qck-code-copy-btn,.qck-content .qck-code-copy-btn:focus-visible,.qck-content .qck-code-copy-btn--success{opacity:1}.qck-content .qck-code-copy-btn--success{color:#4ade80}
package/dist/index.d.ts CHANGED
@@ -153,6 +153,10 @@ declare const _default: {
153
153
  type: StringConstructor;
154
154
  default: string;
155
155
  };
156
+ enableCodeHidden: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
156
160
  }, {
157
161
  normalizedType: import('vue').ComputedRef<import('.').QEditorType>;
158
162
  editorClass: import('vue').ComputedRef<typeof import('ckeditor5').InlineEditor | typeof import('ckeditor5').DecoupledEditor | typeof import('ckeditor5').ClassicEditor>;
@@ -203,6 +207,10 @@ declare const _default: {
203
207
  type: StringConstructor;
204
208
  default: string;
205
209
  };
210
+ enableCodeHidden: {
211
+ type: BooleanConstructor;
212
+ default: boolean;
213
+ };
206
214
  }>>, {
207
215
  value: string;
208
216
  config: import('ckeditor5').EditorConfig;
@@ -215,6 +223,7 @@ declare const _default: {
215
223
  type: import('.').QEditorType;
216
224
  fitHeight: boolean;
217
225
  imageRetry: boolean | import('.').QCKImageRetryOptions;
226
+ enableCodeHidden: boolean;
218
227
  }>;
219
228
  QCKClassic: import('vue').DefineComponent<{
220
229
  value: {
@@ -257,6 +266,10 @@ declare const _default: {
257
266
  type: StringConstructor;
258
267
  default: string;
259
268
  };
269
+ enableCodeHidden: {
270
+ type: BooleanConstructor;
271
+ default: boolean;
272
+ };
260
273
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
261
274
  value: {
262
275
  type: StringConstructor;
@@ -298,6 +311,10 @@ declare const _default: {
298
311
  type: StringConstructor;
299
312
  default: string;
300
313
  };
314
+ enableCodeHidden: {
315
+ type: BooleanConstructor;
316
+ default: boolean;
317
+ };
301
318
  }>>, {
302
319
  value: string;
303
320
  config: import('ckeditor5').EditorConfig;
@@ -309,6 +326,7 @@ declare const _default: {
309
326
  modelValue: string;
310
327
  fitHeight: boolean;
311
328
  imageRetry: boolean | import('.').QCKImageRetryOptions;
329
+ enableCodeHidden: boolean;
312
330
  }>;
313
331
  QCKEditorPro: import('vue').DefineComponent<{
314
332
  value: {
@@ -415,6 +433,10 @@ declare const _default: {
415
433
  type: StringConstructor;
416
434
  default: string;
417
435
  };
436
+ enableCodeHidden: {
437
+ type: BooleanConstructor;
438
+ default: boolean;
439
+ };
418
440
  }, {
419
441
  currentValue: import('vue').Ref<string>;
420
442
  isActive: import('vue').Ref<boolean>;
@@ -562,6 +584,10 @@ declare const _default: {
562
584
  type: StringConstructor;
563
585
  default: string;
564
586
  };
587
+ enableCodeHidden: {
588
+ type: BooleanConstructor;
589
+ default: boolean;
590
+ };
565
591
  }>>, {
566
592
  value: string;
567
593
  config: import('ckeditor5').EditorConfig;
@@ -574,6 +600,7 @@ declare const _default: {
574
600
  placeholder: string;
575
601
  fitHeight: boolean;
576
602
  imageRetry: boolean | import('.').QCKImageRetryOptions;
603
+ enableCodeHidden: boolean;
577
604
  content: string;
578
605
  containerClass: string;
579
606
  sanitize: boolean;
@@ -756,6 +783,7 @@ declare const _default: {
756
783
  modelValue: string;
757
784
  math: boolean;
758
785
  imageRetry: boolean | import('.').QCKImageRetryOptions;
786
+ enableCodeHidden: boolean;
759
787
  content: string;
760
788
  containerClass: string;
761
789
  sanitize: boolean;
@@ -764,7 +792,6 @@ declare const _default: {
764
792
  verticalPadding: string | number;
765
793
  trimMargin: boolean;
766
794
  imagePreview: boolean | import('.').QCKImagePreviewOptions;
767
- enableCodeHidden: boolean;
768
795
  codeHiddenText: string;
769
796
  copyCode: boolean;
770
797
  copySuccessDuration: 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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUtE,wBAOE;AAIF,OAAO,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -495,6 +495,11 @@ const Us = fr({
495
495
  locale: {
496
496
  type: String,
497
497
  default: "zh-cn"
498
+ },
499
+ /** 代码块"预览时隐藏"眼睛按钮开关:为 true 且编辑器引入 QCKCodeBlock 插件时才显示眼睛按钮;默认 false */
500
+ enableCodeHidden: {
501
+ type: Boolean,
502
+ default: !1
498
503
  }
499
504
  },
500
505
  emits: ["ready", "destroy", "blur", "focus", "input", "update:modelValue"],
@@ -547,7 +552,9 @@ const Us = fr({
547
552
  gp,
548
553
  Sp,
549
554
  this.config ?? {}
550
- ), n = r(Ls, {
555
+ );
556
+ t.qckCodeBlock = { ...t.qckCodeBlock, enableCodeHidden: this.enableCodeHidden };
557
+ const n = r(Ls, {
551
558
  // type 切换时强制重建编辑器(底层仅创建时读一次 editor 类)
552
559
  key: this.normalizedType,
553
560
  ref: "ckeditorRef",
@@ -624,6 +631,11 @@ const Us = fr({
624
631
  locale: {
625
632
  type: String,
626
633
  default: "zh-cn"
634
+ },
635
+ /** 代码块"预览时隐藏"眼睛按钮开关:透传给 QCKEditor */
636
+ enableCodeHidden: {
637
+ type: Boolean,
638
+ default: !1
627
639
  }
628
640
  },
629
641
  emits: ["ready", "destroy", "blur", "focus", "input", "update:modelValue"],
@@ -643,7 +655,8 @@ const Us = fr({
643
655
  dataNormalizer: this.dataNormalizer,
644
656
  fitHeight: this.fitHeight,
645
657
  imageRetry: this.imageRetry,
646
- locale: this.locale
658
+ locale: this.locale,
659
+ enableCodeHidden: this.enableCodeHidden
647
660
  },
648
661
  on: {
649
662
  ready: (t) => this.$emit("ready", t),
@@ -61825,9 +61838,13 @@ function Qf(r, e) {
61825
61838
  i.className = "qck-code-hidden-text", i.textContent = e, a.appendChild(i), n.replaceWith(a);
61826
61839
  }), t.body.innerHTML;
61827
61840
  }
61841
+ function Xf(r) {
61842
+ r.querySelectorAll("br").forEach((e) => e.replaceWith(`
61843
+ `));
61844
+ }
61828
61845
  function ws(r) {
61829
61846
  r.querySelectorAll("code").forEach((e) => {
61830
- np(e) && Yf.highlightElement(e);
61847
+ np(e) && (Xf(e), Yf.highlightElement(e));
61831
61848
  });
61832
61849
  }
61833
61850
  const el = fr({
@@ -62079,7 +62096,7 @@ const el = fr({
62079
62096
  }
62080
62097
  }, e);
62081
62098
  }
62082
- }), Xf = fr({
62099
+ }), Zf = fr({
62083
62100
  name: "QCKEditorPro",
62084
62101
  components: {
62085
62102
  QCKClassic: Bs,
@@ -62196,6 +62213,11 @@ const el = fr({
62196
62213
  locale: {
62197
62214
  type: String,
62198
62215
  default: "zh-cn"
62216
+ },
62217
+ /** 代码块"预览时隐藏"眼睛按钮开关:透传给 QCKClassic;为 true 且编辑器引入 QCKCodeBlock 插件时才显示眼睛按钮 */
62218
+ enableCodeHidden: {
62219
+ type: Boolean,
62220
+ default: !1
62199
62221
  }
62200
62222
  },
62201
62223
  emits: ["ready", "destroy", "blur", "focus", "input", "update:modelValue", "exit-blocked"],
@@ -62409,7 +62431,8 @@ const el = fr({
62409
62431
  dataNormalizer: this.dataNormalizer,
62410
62432
  fitHeight: this.fitHeight,
62411
62433
  imageRetry: this.imageRetry,
62412
- locale: this.locale
62434
+ locale: this.locale,
62435
+ enableCodeHidden: this.enableCodeHidden
62413
62436
  },
62414
62437
  on: {
62415
62438
  ready: this.handleReady,
@@ -62422,7 +62445,7 @@ const el = fr({
62422
62445
  ]);
62423
62446
  }
62424
62447
  });
62425
- class Zf {
62448
+ class Jf {
62426
62449
  constructor(e, t) {
62427
62450
  this.loader = e, this.options = t;
62428
62451
  }
@@ -62475,10 +62498,10 @@ class Zf {
62475
62498
  t.send(a);
62476
62499
  }
62477
62500
  }
62478
- function nb(r, e) {
62479
- return new Zf(r, e);
62501
+ function ab(r, e) {
62502
+ return new Jf(r, e);
62480
62503
  }
62481
- class Jf {
62504
+ class jf {
62482
62505
  constructor(e) {
62483
62506
  this.aborted = !1, this.loader = e;
62484
62507
  }
@@ -62514,10 +62537,10 @@ class Jf {
62514
62537
  this.aborted = !0;
62515
62538
  }
62516
62539
  }
62517
- function ab(r) {
62518
- return new Jf(r);
62540
+ function ib(r) {
62541
+ return new jf(r);
62519
62542
  }
62520
- class jf {
62543
+ class eb {
62521
62544
  constructor(e, t) {
62522
62545
  this.aborted = !1, this.loader = e, this.uploadFn = t;
62523
62546
  }
@@ -62554,14 +62577,14 @@ class jf {
62554
62577
  this.aborted = !0;
62555
62578
  }
62556
62579
  }
62557
- function ib(r, e) {
62558
- return new jf(r, e);
62580
+ function ob(r, e) {
62581
+ return new eb(r, e);
62559
62582
  }
62560
- const ob = {
62583
+ const sb = {
62561
62584
  CKEditor: Ls,
62562
62585
  QCKEditor: Us,
62563
62586
  QCKClassic: Bs,
62564
- QCKEditorPro: Xf,
62587
+ QCKEditorPro: Zf,
62565
62588
  QCKContent: el,
62566
62589
  QCKImageViewer: rp
62567
62590
  };
@@ -62570,10 +62593,10 @@ export {
62570
62593
  Bs as QCKClassic,
62571
62594
  el as QCKContent,
62572
62595
  Us as QCKEditor,
62573
- Xf as QCKEditorPro,
62596
+ Zf as QCKEditorPro,
62574
62597
  rp as QCKImageViewer,
62575
- ib as createAsyncUploadAdapter,
62576
- ab as createMockUploadAdapter,
62577
- nb as createXHRUploadAdapter,
62578
- ob as default
62598
+ ob as createAsyncUploadAdapter,
62599
+ ib as createMockUploadAdapter,
62600
+ ab as createXHRUploadAdapter,
62601
+ sb as default
62579
62602
  };
@@ -45,6 +45,11 @@ declare const _default: import('vue').DefineComponent<{
45
45
  type: StringConstructor;
46
46
  default: string;
47
47
  };
48
+ /** 代码块"预览时隐藏"眼睛按钮开关:透传给 QCKEditor */
49
+ enableCodeHidden: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
48
53
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
49
54
  value: {
50
55
  type: StringConstructor;
@@ -89,6 +94,11 @@ declare const _default: import('vue').DefineComponent<{
89
94
  type: StringConstructor;
90
95
  default: string;
91
96
  };
97
+ /** 代码块"预览时隐藏"眼睛按钮开关:透传给 QCKEditor */
98
+ enableCodeHidden: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
92
102
  }>>, {
93
103
  value: string;
94
104
  config: EditorConfig;
@@ -100,6 +110,7 @@ declare const _default: import('vue').DefineComponent<{
100
110
  modelValue: string;
101
111
  fitHeight: boolean;
102
112
  imageRetry: boolean | QCKImageRetryOptions;
113
+ enableCodeHidden: boolean;
103
114
  }>;
104
115
  export default _default;
105
116
  //# sourceMappingURL=QCKClassic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QCKClassic.d.ts","sourceRoot":"","sources":["../../../src/components/QCKClassic.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAiC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE7E,OAAO,KAAK,EAAqB,oBAAoB,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;cAqBlD,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;cAgBpB,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;wBACpC,MAAM;;IAExB,mCAAmC;;;;;IAKnC,gCAAgC;;cAEH,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,8DAA8D;;;;;;;;;;;;;;;cA7B5C,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;cAgBpB,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;wBACpC,MAAM;;IAExB,mCAAmC;;;;;IAKnC,gCAAgC;;cAEH,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,8DAA8D;;;;;;;;;;;2BAb1B,MAAM,KAAK,MAAM;;;;;;AAjCzD,wBAwFG"}
1
+ {"version":3,"file":"QCKClassic.d.ts","sourceRoot":"","sources":["../../../src/components/QCKClassic.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAiC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE7E,OAAO,KAAK,EAAqB,oBAAoB,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;cAqBlD,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;cAgBpB,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;wBACpC,MAAM;;IAExB,mCAAmC;;;;;IAKnC,gCAAgC;;cAEH,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,8DAA8D;;;;;IAK9D,qCAAqC;;;;;;;;;;;;;;;cAlCnB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;cAgBpB,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;wBACpC,MAAM;;IAExB,mCAAmC;;;;;IAKnC,gCAAgC;;cAEH,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,8DAA8D;;;;;IAK9D,qCAAqC;;;;;;;;;;;2BAlBD,MAAM,KAAK,MAAM;;;;;;;AAjCzD,wBA8FG"}
@@ -184,6 +184,7 @@ declare const _default: import('vue').DefineComponent<{
184
184
  modelValue: string;
185
185
  math: boolean;
186
186
  imageRetry: boolean | QCKImageRetryOptions;
187
+ enableCodeHidden: boolean;
187
188
  content: string;
188
189
  containerClass: string;
189
190
  sanitize: boolean;
@@ -192,7 +193,6 @@ declare const _default: import('vue').DefineComponent<{
192
193
  verticalPadding: string | number;
193
194
  trimMargin: boolean;
194
195
  imagePreview: boolean | QCKImagePreviewOptions;
195
- enableCodeHidden: boolean;
196
196
  codeHiddenText: string;
197
197
  copyCode: boolean;
198
198
  copySuccessDuration: number;
@@ -1 +1 @@
1
- {"version":3,"file":"QCKContent.d.ts","sourceRoot":"","sources":["../../../src/components/QCKContent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEzG,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAClC,OAAO,uCAAuC,CAAC;AAK/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuHvD,Q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;;;;;;;;;;;cAmIvD,QAAQ,CAAC,MAAM,CAAC;;;IAGlC,qFAAqF;;cAEzD,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,qEAAqE;;cAEzC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,oFAAoF;;;;;;cAMvD,QAAQ,CAAC,OAAO,GAAG,sBAAsB,CAAC;;;IAGvE,8DAA8D;;cAEjC,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,sCAAsC;;;;;IAKtC,mBAAmB;;;;;IAKnB,mCAAmC;;;;;IAKnC,iCAAiC;;;;;IAKjC,iDAAiD;;;;;;;;;;;;;;;;;kCA0MZ,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAzP7B,QAAQ,CAAC,MAAM,CAAC;;;IAGlC,qFAAqF;;cAEzD,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,qEAAqE;;cAEzC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,oFAAoF;;;;;;cAMvD,QAAQ,CAAC,OAAO,GAAG,sBAAsB,CAAC;;;IAGvE,8DAA8D;;cAEjC,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,sCAAsC;;;;;IAKtC,mBAAmB;;;;;IAKnB,mCAAmC;;;;;IAKnC,iCAAiC;;;;;IAKjC,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;AAhFrD,wBA4bG"}
@@ -50,6 +50,11 @@ declare const _default: import('vue').DefineComponent<{
50
50
  type: StringConstructor;
51
51
  default: string;
52
52
  };
53
+ /** 代码块"预览时隐藏"眼睛按钮开关:为 true 且编辑器引入 QCKCodeBlock 插件时才显示眼睛按钮;默认 false */
54
+ enableCodeHidden: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
53
58
  }, {
54
59
  normalizedType: import('vue').ComputedRef<QEditorType>;
55
60
  editorClass: import('vue').ComputedRef<typeof InlineEditor | typeof DecoupledEditor | typeof ClassicEditor>;
@@ -104,6 +109,11 @@ declare const _default: import('vue').DefineComponent<{
104
109
  type: StringConstructor;
105
110
  default: string;
106
111
  };
112
+ /** 代码块"预览时隐藏"眼睛按钮开关:为 true 且编辑器引入 QCKCodeBlock 插件时才显示眼睛按钮;默认 false */
113
+ enableCodeHidden: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
107
117
  }>>, {
108
118
  value: string;
109
119
  config: EditorConfig;
@@ -116,6 +126,7 @@ declare const _default: import('vue').DefineComponent<{
116
126
  type: QEditorType;
117
127
  fitHeight: boolean;
118
128
  imageRetry: boolean | QCKImageRetryOptions;
129
+ enableCodeHidden: boolean;
119
130
  }>;
120
131
  export default _default;
121
132
  //# sourceMappingURL=QCKEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QCKEditor.d.ts","sourceRoot":"","sources":["../../../src/components/QCKEditor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAwD,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1F,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAkB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5G,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAMnF,OAAO,yBAAyB,CAAC;;IAU7B,wCAAwC;;cAEtB,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;cAYrB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;cAgBpB,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;wBACpC,MAAM;;IAExB,gDAAgD;;;;;IAKhD,iEAAiE;;cAEpC,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,2EAA2E;;;;;;;;4BA2E5C,eAAe;;;IAtH9C,wCAAwC;;cAEtB,QAAQ,CAAC,WAA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EAAiE;;cAEpC,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,2EAA2E;;;;;IAK3E,sEAAsE;;;;;;;;;;;2BAlBlC,MAAM,KAAK,MAAM;;;;;;;;AAtCzD,wBA6NG"}
@@ -114,6 +114,11 @@ declare const _default: import('vue').DefineComponent<{
114
114
  type: StringConstructor;
115
115
  default: string;
116
116
  };
117
+ /** 代码块"预览时隐藏"眼睛按钮开关:透传给 QCKClassic;为 true 且编辑器引入 QCKCodeBlock 插件时才显示眼睛按钮 */
118
+ enableCodeHidden: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
117
122
  }, {
118
123
  currentValue: import('vue').Ref<string>;
119
124
  isActive: import('vue').Ref<boolean>;
@@ -268,6 +273,11 @@ declare const _default: import('vue').DefineComponent<{
268
273
  type: StringConstructor;
269
274
  default: string;
270
275
  };
276
+ /** 代码块"预览时隐藏"眼睛按钮开关:透传给 QCKClassic;为 true 且编辑器引入 QCKCodeBlock 插件时才显示眼睛按钮 */
277
+ enableCodeHidden: {
278
+ type: BooleanConstructor;
279
+ default: boolean;
280
+ };
271
281
  }>>, {
272
282
  value: string;
273
283
  config: EditorConfig;
@@ -280,6 +290,7 @@ declare const _default: import('vue').DefineComponent<{
280
290
  placeholder: string;
281
291
  fitHeight: boolean;
282
292
  imageRetry: boolean | QCKImageRetryOptions;
293
+ enableCodeHidden: boolean;
283
294
  content: string;
284
295
  containerClass: string;
285
296
  sanitize: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"QCKEditorPro.d.ts","sourceRoot":"","sources":["../../../src/components/QCKEditorPro.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA8D,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAChG,OAAO,EAAE,aAAa,EAAkB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAG7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBA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B,MAAM,SAAS,SAAS,UAAU,iBAAiB;;;;;;;;;;;cAxW5D,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;cAgBpB,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;wBACpC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8CxB,2CAA2C;;cAEf,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,2CAA2C;;cAEf,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,sCAAsC;;;;;;cAMT,QAAQ,CAAC,OAAO,GAAG,sBAAsB,CAAC;;;IAGvE,0EAA0E;;cAE7C,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,qDAAqD;;;;;IAKrD,yCAAyC;;;;;IAKzC,mGAAmG;;;;;IAKnG,4EAA4E;;;;;;;;;;;2BAtFxC,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;AAlCzD,wBAueG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itshixun/qckeditor-vue2",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "Vue2 components for CKEditor 5",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -53,4 +53,4 @@
53
53
  "type": "git",
54
54
  "url": ""
55
55
  }
56
- }
56
+ }