You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CKEditor链接弹窗无法输入问题求助(Laravel/Vuetify栈)

CKEditor在Vuetify浮层对话框中焦点异常问题

技术栈:Laravel / Vuetify

我在Vuetify的浮层对话框组件里使用CKEditor时遇到了异常:点击CKEditor工具栏的链接图标,弹出的链接设置窗口输入框无法获取焦点,反而会选中浮层内的第一个输入框。后来我移除了浮层中除CKEditor外的所有输入框,再次点击链接图标时,焦点又跑到了文本样式下拉框上。

但在非浮层的父组件中测试CKEditor时,链接弹窗的输入框可以正常获取焦点。最初以为是z-index的问题,但无论怎么调整弹窗的z-index值,问题都没有解决。

模板代码

<v-row>
  <v-col cols="12" class="font-weight-bold">
     URL Description 1:
  </v-col>
  <v-col cols="12">
    <ckeditor 
      :editor="editor" 
      v-model="pages.component.options.url_1_description" 
      :config="editorConfig" 
      style="height:250px"
    ></ckeditor>
  </v-col>
</v-row>

脚本代码

import ClassicEditor from "@ckeditor/ckeditor5-build-classic";

export default {
  components: { ClassicEditor },
  data() {
    return {
      editor: ClassicEditor,
      editorConfig: {},
    };
  },
};

内容的提问来源于stack exchange,提问作者Dustin Cox

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.18 18:55:30