Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7041

Copy and paste of links to resources explorer in the editor transforms the link

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.8, 4.0M5
    • 3.8
    • Inline Editor
    • None

          [CMS-7041] Copy and paste of links to resources explorer in the editor transforms the link

          One working solution for tinyMCE : rename ametys_XX params to data-ametys_XX
          Copy/paste seems to work

          But you should be aware of :

          • JS/tinyMCE related code
          • XSL html2docbook / docbook2htmleditor
          • Java : UploadedDataHTMLEditionHandler.java

          Cédric Damioli added a comment - One working solution for tinyMCE : rename ametys_XX params to data-ametys_XX Copy/paste seems to work But you should be aware of : JS/tinyMCE related code XSL html2docbook / docbook2htmleditor Java : UploadedDataHTMLEditionHandler.java

          Another solution : http://archive.tinymce.com/wiki.php/Plugin3x:paste : past_preprocess and/or past_postprocess to correct HTML on past.
          Inconvenient : Could be heavy on past action
          Advantage : Always have consistent links

          Bérénice Maurel added a comment - Another solution : http://archive.tinymce.com/wiki.php/Plugin3x:paste : past_preprocess and/or past_postprocess to correct HTML on past. Inconvenient : Could be heavy on past action Advantage : Always have consistent links

          A solution should be an analyze of rich text on save to rebuild links with th correct type and URL.
          There is a big inconvenient with this solution : The links are still external on edition before saving.

          Bérénice Maurel added a comment - A solution should be an analyze of rich text on save to rebuild links with th correct type and URL. There is a big inconvenient with this solution : The links are still external on edition before saving.

          Bérénice Maurel added a comment - - edited

          The ametys_href and ametys_type attributes seems to not be copied on this action. It should be the problem.

          Bérénice Maurel added a comment - - edited The ametys_href and ametys_type attributes seems to not be copied on this action. It should be the problem.

            cedric Cédric Damioli
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: