geonode icon indicating copy to clipboard operation
geonode copied to clipboard

rich text editor shortens URLs to own instance in a wrong way

Open gannebamm opened this issue 3 years ago • 5 comments

Expected Behavior

If I use links for other resources on my instance inside the metadata abstracts rich text editor the links do follow my given URL.

Actual Behavior

The links will get shortened in the wrong way. See this example: https://development.demo.geonode.org/documents/214

Steps to Reproduce the Problem

  1. create a resource
  2. use the rich text metadata abstract editor and put in links to other resources (eg documents)
  3. see how they will get shortened in a wrong way (documents/ is missing)

Specifications

  • GeoNode version: 3.3.1
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): https://development.demo.geonode.org
  • Platform: https://development.demo.geonode.org
  • Additional details:

gannebamm avatar Feb 10 '22 11:02 gannebamm

@gannebamm it looks like a bug in Tinymce. Look at the video below. Even if I change the links in source code mode and the source code is reopened they appear truncated.

tinymce_bug_links

giohappy avatar Feb 10 '22 11:02 giohappy

You are right. The only way I was able to fix it was to fiddle around in the PostgreSQL but than the other fields will not get regenerated like CSW abstract and whatever else there is.

gannebamm avatar Feb 10 '22 12:02 gannebamm

@gannebamm I suspect we will have to investigate if it's a gun in the specific version of TinyMCE.

giohappy avatar Feb 10 '22 12:02 giohappy

@giohappy This seems to be the corresponding tinymce issue: https://github.com/tinymce/tinymce/issues/7387#issuecomment-972187770

gannebamm avatar Feb 10 '22 15:02 gannebamm

nice spot @gannebamm we can test the proposed configuration by adding it here

giohappy avatar Feb 10 '22 16:02 giohappy