Thank you Scott. Now it works. I've added rtePlugins and uiSettings nodes to the richtext field, like this:
{ "jcr:primaryType": "nt:unstructured", "required": true, "name": "./basiquesDenominacio", "fieldLabel": "Denominació", "sling:resourceType": "cq/gui/components/authoring/dialog/richtext", "useFixedInlineToolbar": true, "rtePlugins": { "jcr:primaryType": "nt:unstructured", "format": { "jcr:primaryType": "nt:unstructured", "features": "*" }, "justify": { "jcr:primaryType": "nt:unstructured", "features": "*" }, "lists": { "jcr:primaryType": "nt:unstructured", "features": "*" }, "paraformat": { "jcr:primaryType": "nt:unstructured", "features": "*" }, "links": { "jcr:primaryType": "nt:unstructured", "features": "*" }, "table": { "jcr:primaryType": "nt:unstructured", "features": ["0"], "hiddenHeaderConfig": { "jcr:primaryType": "nt:unstructured", "hiddenHeaderClassName": "cq-wcm-foundation-aria-visuallyhidden", "hiddenHeaderEditingCSS": "coral-RichText-hiddenHeader--editing" } }, "misctools": { "jcr:primaryType": "nt:unstructured", "features": ["sourceedit"] } }, "uiSettings": { "jcr:primaryType": "nt:unstructured", "cui": { "jcr:primaryType": "nt:unstructured", "inline": { "jcr:primaryType": "nt:unstructured", "toolbar": [ "format#bold", "format#italic", "format#underline", "#paraformat", "image#imageProps", "#justify", "#lists", "links#modifylink", "links#unlink", "misctools#sourceedit" ], "popovers": { "jcr:primaryType": "nt:unstructured", "justify": { "jcr:primaryType": "nt:unstructured", "ref": "justify", "items": [ "justify#justifyleft", "justify#justifycenter", "justify#justifyright" ] }, "lists": { "jcr:primaryType": "nt:unstructured", "ref": "lists", "items": [ "lists#unordered", "lists#ordered", "lists#outdent", "lists#indent" ] }, "paraformat": { "jcr:primaryType": "nt:unstructured", "ref": "paraformat", "items": "paraformat:getFormats:paraformat-pulldown" } } } } } }