Skip to content

ckeditor widget does not save content when used inside a grid widget  #118

@patrr

Description

@patrr

In a 1:n relationship managed via a transient field and a grid widget in the main table, like this:

(table 'Punto': fields.ini)

[Testi]
transient=1
widget:type=grid
widget:columns="Tipologia, TitoloTesto, Testo, CodDelibera, Raccordo, NoteT"
relationship=Testi
order=40

(table 'Punto': relationships.ini)

[Testi]
__sql__ = "SELECT * FROM Testo T WHERE T.FKPunto='$KPunto'"

(table 'Testo': fields.ini)

[Testo]
widget:type=ckeditor
passthru=1

everything is rendering as expected when editing a 'Punto' record, but no value is saved in the 'Testi' relationship when clicking the save button, and no new line in the grid appears when clicking on the last cell

If a textarea widget is used instead of a ckeditor widget, like this:

(table 'Testo': fields.ini)

[Testo]
widget:type=textarea

the save button and the new line mechanism in the grid work again as expected.

ckeditor inside a grid might not be currently supported, but could sometimes be useful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions