Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

257
Visualizações
About Custom Table in Sun Editor

enter image description here

I have added a custom table plugin for using different class names and styling. But when I add a new table to the table first it don't gives an error but just add <table class="custom-table"><tbody></tbody></table> without tr and td in the second time I try it gives this error.

When I try to solve, I realize that x and y are coming undefined. I think there is a problem.

  1. I have added '<select class="" id="myClass" name="option"><option value="se-table-default">Default</option><option value="borderless-table">Border Less</option><option value="inner-borders-table">Inner Borders</option><option value="hide-vertical-lines-table">Hide Vertical Lines</option></select>' + this to popup and
  2. this part let myClass = document.getElementById("myClass"); myClass = myClass.value.replace(/\s/g, "") || "se-table-default"; const oTable = this.util.createElement("TABLE"); to get define class of table.

You can find the codes https://codesandbox.io/s/customtableplugin-xv5v31?file=/src/components/Editor.js here. How can solve this problem? Thanks in advance.enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda