MIGX input richtext problem with link

In MIGX, I added a richtext input field. When I add a link to it, e.g.: https://modx.com/ and save the document there is a problem. After refreshing the manager (click F5), you cannot edit the document with this MIGX because an error appears:

Uncaught TypeError: Cannot read properties of undefined (reading 'style')
    at constructor.updateAllColumnWidths (ext-all.js:21:601816)
    at constructor.fitColumns (ext-all.js:21:611216)
    at constructor.layout (ext-all.js:21:606356)
    at constructor.refresh (ext-all.js:21:613451)
    at Object.<anonymous> (manager/?a=resource/update&id=57:8222:39)
    at Object.each (ext-all.js:21:44494)
    at MIGx.updateGrid (manager/?a=resource/update&id=57:8221:11)
    at Object.fire (ext-all.js:21:3547)
    at Object.fireEvent (ext-all.js:21:668)
    at constructor.layout (ext-all.js:21:158967)

I checked exactly which sign is spoiling and it turns out that it is ":" in https://
Probably it is something related to parsing , how to prevent it?

Can you provide more information (as I can’t reproduce this issue):

  • Can you share your MIGX config? Do you use a renderer for this ‘richtext’ column?
  • What richtext editor are you using?
  • (What versions of MODX, MIGX, PHP?)

That’s right, the problem turned out to be Renderer: this.renderFirst. What Renderer should I use to display a nice show text from input richtext?

It looks like the same issue was already discussed in this topic:

(The best solution in my opinion is still to use a custom renderer.)

2 Likes

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.