Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-88958

Images don't get shown with TinyMCE as WYSIWYG editor

    Details

      Description

      Once tinyMCE editor is enabled for Web Contents or Blogs, if you insert an image using the corresponding button in the WYSIWYG editor, it doesn't work.

      Steps to reproduce

      1. Configure tinyMCE in portal-ext.properties, for example in Blogs: (editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=tinymce)
      2. Restart Liferay so configuration change happens
      3. Go to Contents / Blog on any site
      4. Create a new Blog Entry and assert that you are seeing tinyMCE as WYSIWYG editor for the detail of the blog (field after subtitle)
      5. Give it a title
      6. Press the img button on tinyMCE to add an image ("Insert/edit image" button)
      7. Press on the folder icon near Source field that appears on the popup
      8. Assert that ItemSelector appears and choose whatever image from Documents and Media
      9. Assert that Source field gets filled with something like: {"groupId":"20126","title":"8852716093470 (1).jpg","type":"document","uuid":"bfd8a1e9-4815-c1ab-f3d3-a2afae6f68de","fileEntryId":"47897","url":"/documents/20126/47889/8852716093470+%281%29.jpg/bfd8a1e9-4815-c1ab-f3d3-a2afae6f68de?t=1534351918112&imagePreview=1"}
      10. Publish it

      Expected result
      The blog entry gets published and the image is shown if you edit or visit it.

      Actual result
      The blog entry gets published but there's no image. If you have a look to the generated source code you'll see an html img tag with all that groupid, etc. stuff in the src property which is not going to work

        Attachments

          Activity

            People

            Assignee:
            john.co John Co
            Reporter:
            rafael.lluis Rafael Lluis
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 35 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP7
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master