Selection consists of partial tables, delete does not work as expected

  • We are working with generated documents which contain text and several small tables.

    If the user makes a selection containing only parts of a table by mouse or keyboard and then presses DELETE, nothing gets deleted (sometimes the content of the first cell in the selection)


    Only if the user manages to select full tables, they get deleted[Blockierte Grafik: https://www.dropbox.com/s/veqkc1zyvtf7lsh/wp-table.png]

    The main usecase is users want to remove sections of the document that are not necessary.

    Is there a way to enforce the selection of whole tables either with edit-options or in an event-handler during the selection?https://www.dropbox.com/s/veqkc1zyvtf7lsh/wp-table.png

    • Offizieller Beitrag

    WPTools differentiates cell selection and area selection. When cell selection is used deletion of the selection will clear the selected cells.

    If whole rows are selected, the selected rows are removed.

    In case of area selection it will delete whole tables only if the start and the end of the area are outside of any table. This is why nothing happens in your example.

    I haven't thought about this yet, but it would make sense to expand the start and the end of such an selection to select a whole row. This may be a feature for a future version.