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

Add HTML capabilities to announcement portlet

    Details

      Description

      The Announcement portlet allows only to display a text on a single line.
      It should be great to have the possibility to make HTML announcements.

      To by-pass this, I added the following script to the page Javascript to "enable" HTML for announcements. But it's ugly and doesn't support "Mark as Read" then "Show".

      function enableHTML()
      {
      	var entries = document.getElementById("portlet_84").getElementsByClassName("entry");
      
      	for(var i=0; i < entries.length; i++)
      	{
      		entries[i].innerHTML=entries[i].innerHTML.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/\\</g,"&lt;").replace(/\\>/g,"&gt;");
      	}
      }
      
      window.onload = enableHTML;
      

      Thanks.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              pierremorin Pierre Morin (Inactive)
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  --Sprint 12/11
                  6.1.0 CE RC1