grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Table block

Open chiqui3d opened this issue 8 years ago • 3 comments

I don't see any basic blocks that you can create a table. Even if I do the block, it is impossible to edit the text. Block example

 bm.add("table", {
        category: 'Basic',
        attributes: { class: "fa fa-table" },
        label: "Table",
        content: `<table class="table">
                    <thead>
                        <tr>
                        <th scope="col">#</th>
                        <th scope="col">First</th>
                        <th scope="col">Last</th>
                        <th scope="col">Handle</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                        <th scope="row">1</th>
                        <td>Mark</td>
                        <td>Otto</td>
                        <td>@mdo</td>
                        </tr>
                        <tr>
                        <th scope="row">2</th>
                        <td>Jacob</td>
                        <td>Thornton</td>
                        <td>@fat</td>
                        </tr>
                        <tr>
                        <th scope="row">3</th>
                        <td>Larry</td>
                        <td>the Bird</td>
                        <td>@twitter</td>
                        </tr>
                    </tbody>
                    </table>`
    });

with this option I can't modify the content of each td and they don't give me the options to duplicate columns or rows.

@artf you plan to create a table block?

chiqui3d avatar Feb 09 '18 14:02 chiqui3d

enveloping the th text in a paragraph, works well. but as I said before you plan to add custom table options, for the borders and general table color.

chiqui3d avatar Feb 09 '18 14:02 chiqui3d

@chiqui3d hi,can you tell me how to deal with table-block

ionic666 avatar May 25 '18 06:05 ionic666

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 17 '19 15:09 lock[bot]