Search code examples
ckeditorliferay

set target blank on link inside CKEditor of liferay


I want to set target blank for "link" inside CKEditor of Liferay. Any help would be greatly appreciated.


Solution

  • If I understand correctly you want to provide a link in the content portion of the ckeditor and want to change how the link behaves.

    So here is a simple illustration from the web-content portlet:

    1. Normal View of the Editor, shows how you can enter a link

      How the WYSIWYG view or normal view looks

    2. Source view of the Editor, shows how you can modify the behaviour of the link

      How the source view looks

    Hope this helps and this is what you meant.