+ Reply to Thread
Results 1 to 7 of 7

Thread: Link with target about not saved on page

  1. #1
    Junior Member
    Join Date
    Jun 2018
    Location
    Brazil
    Posts
    21

    Link with target about not saved on page

    I have a problem that is simple but, it is very important for a website.

    The links created inside Content ==> Pages when I create a link through the text editor menu with the html target = "_ about" command so that when clicking a new browser tab and keep the original page open, it is not being saved .

    Does that have a solution?

    Thanks for the help.

  2. #2
    In editor, when you click link icon, from tab "target" select "new window _blank" . (_blank will open link in new window).

  3. #3
    Junior Member
    Join Date
    Jun 2018
    Location
    Brazil
    Posts
    21
    Hello,

    Thanks for your response. This is the problem, after I put the _blank option as you explained and then saved the page, when I open the Site, the link does not open on a new page.

    When I go back to edit or see through the source code on the page, the target option was not saved.

    Even when I try to manually place the traget blankk command, it is not saved.
    In any brounser this happens.

    Other link options are also not saved, for example, iframe ..

  4. #4
    Than it sounds like a bug,and you should open support ticket on flynax support, and they will check and fix it.
    https://support.flynax.com/tickets/

  5. #5
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    388
    It is not CKEditor problem guys. It is the problem of HTML Purifier which is new library in flynax 4.6.2
    HTML Purifier is a HTML filter library against XSS attacks. Please see http://htmlpurifier.org/ for details.
    So the solution is:
    Go to Vendor/ezyang/htmlpurifier/library/HTMLPurifier.php

    Find :
    Code:
    Only registered members can view the code.
    Add below it:
    Code:
    Only registered members can view the code.
    This command allows user to use new window as target frame.
    As you see, it is an array, so you can add more options separated with commas, like this:
    Code:
    Only registered members can view the code.
    Last edited by Bahram Soltanirad; August 29, 2018 at 10:04 AM.

  6. #6
    Quote Originally Posted by Bahram Soltanirad View Post
    It is not CKEditor problem guys. It is the problem of HTML Purifier which is new library in flynax 4.6.2
    HTML Purifier is a HTML filter library against XSS attacks. Please see http://htmlpurifier.org/ for details.
    So the solution is:
    Go to Vendor/ezyang/htmlpurifier/library/HTMLPurifier.php

    Find :
    Code:
    Only registered members can view the code.
    Add below it:
    Code:
    Only registered members can view the code.
    This command allows user to use new window as target frame.
    As you see, it is an array, so you can add more options separated with commas, like this:
    Code:
    Only registered members can view the code.
    Awesome..This problem now solved Thanks Bahram Soltanirad....

  7. #7
    hi is this correct ?

    $config->set('Attr.AllowedFrameTargets', array('_blank','_top'));

+ Reply to Thread