tables icon indicating copy to clipboard operation
tables copied to clipboard

Show text-rich content inside of an text editor

Open datenangebot opened this issue 2 years ago • 2 comments

If a table has a column text-rich and this is included in another text editor as a widget, the column cannot be displayed because we can not initialize a text editor inside of a editor.

SCR-20230914-majw

@juliushaertl @max-nextcloud Any ideas?

datenangebot avatar Sep 14 '23 11:09 datenangebot

Does the smart picker preview contain editable content or is it only using the editor for rendering the html?

Is the content of the editor inside tables limited in some way or can a table contain a rich text field which then in turn includes smart picker previews?

max-nextcloud avatar Sep 14 '23 12:09 max-nextcloud

One thing to check is if we actually load the editor.js entrypoint https://github.com/nextcloud/text/blob/main/src/editor.js

What might be missing is that tables actually dispatches a LoadEditor event for the smart picker previews.

I had to do a similar thing in deck but with some extra safeguard as there was a cyclic event dispatching then ongoing. Reference code https://github.com/nextcloud/deck/blob/57d6436b342abf28a8668995de2e6f512703d8a9/lib/AppInfo/Application.php#L98-L102

juliusknorr avatar Sep 14 '23 13:09 juliusknorr