ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Table contextual toolbar is not showing

Open Esther-Choi opened this issue 2 years ago • 4 comments

📝 Provide detailed reproduction steps (if any)

I used online builder to build decoupled editor. Everything works fine but the Table contextual toolbar is not showing.. If I check the index.html in my online build file, it works fine so it means I added the plugin.

✔️ Expected result

스크린샷 2023-03-31 오후 2 40 39

❌ Actual result

스크린샷 2023-03-31 오후 2 40 58

this is my editor code import { Editor as ClassicEditor } from 'ckeditor5-custom-build/build/ckeditor' import { CKEditor as Editor } from '@ckeditor/ckeditor5-react'

const editorConfiguration = { table: { contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells'], }, } const toolBarRef = createRef<HTMLDivElement>() `<div className="document-editor">

<div className="document-editor__editable-container">
        <Editor
          editor={ClassicEditor}
          config={editorConfiguration}
          data=""
          onReady={(editor) => {
            if (toolBarRef.current) {
              toolBarRef.current.appendChild(editor.ui.view.toolbar.element)
            }
          }}
          onChange={(event, editor) => {
            const data = editor.getData()
            console.log({ event, editor, data })
          }}
          onBlur={(event, editor) => {
            console.log('Blur.', editor)
          }}
          onFocus={(event, editor) => {
            console.log('Focus.', editor)
          }}
        />
      </div>
    </div>

`

Esther-Choi avatar Mar 31 '23 05:03 Esther-Choi

We are seeing the same issue and it seems that changing the screen height (triggering a re-calculation of the toolbar position) will cause the toolbar to suddenly show up - so it seems to be a positioning issue for a certain table position and available viewport combination. Would like to get an update on this....

lschlesinger avatar Jul 28 '23 11:07 lschlesinger

I cannot reproduce it when using the OB as well, so it might point to some react problems with the decoupled editor.

@lschlesinger or @Esther-Choi, could you provide some code repo / codepen?

Witoso avatar Jul 31 '23 11:07 Witoso

Have you solved the issue ? @Esther-Choi @Witoso it works if i use it on page but doesnt work on modal.

makin4990 avatar Jan 31 '24 13:01 makin4990

I am also experiencing this bug when using the table and table toolbar in React. It seems to break when within a modal.

SophiaBouckJ2 avatar Aug 27 '24 18:08 SophiaBouckJ2

z-index? .ck.ck-balloon-panel{ z-index:4200 !important; }

omit-inc avatar Oct 22 '24 09:10 omit-inc

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Oct 22 '25 23:10 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Nov 21 '25 23:11 CKEditorBot