+ Reply to Thread
Results 1 to 9 of 9

Thread: Why does the text editor not save changes to the Links ?

  1. #1
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028

    Why does the text editor not save changes to the Links ?

    If I add a text to the text editor and add a link then add target and reliance it does not save for example if I add as below

    my test link here

    my test <a href="http://mysite.com" rel="nofollow" target="_blank">link</a> here

    SAVE

    after I save it I end up with

    my test link here

    my test <a href="http://mywebsite.com">link</a> here

    the attributes target and rel are deleted on save ? where and how do I fix this ? Please
    Last edited by Pete Young; March 31, 2019 at 11:35 AM.
    Getting Started or Starting Over with Your Classified Site? then Get Ready Set Fly V 4.7.1 > quietSecrets.net

  2. #2

  3. #3
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    ok brilliant the second one is what I need as it still exists in 4.7.0

    thank you
    Getting Started or Starting Over with Your Classified Site? then Get Ready Set Fly V 4.7.1 > quietSecrets.net

  4. #4
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    $config->set('Attr.AllowedFrameTargets', array('_blank','nofollow'));

    I added the code as above but it spits out as below, apparently it has something to do with the ck editor changing things around ?

    my test <a href="http://mywebsite.com" rel="noreferrer noopener" target="_blank">link</a> here

    as best I can do is remove the nofollow option ? and then use the first links options to apply the no follow.

    Edit; I removed the no follow attribute from code

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

    and now if I just run the blank option in the link I still get that "noreferrer noopener" in the code ? what's this all about ?

    my test <a href="http://mysite.com/" rel="noreferrer noopener" target="_blank">link here</a>

    Edit 2, I can read that the extra code is related to security but also read that

    UPDATED 8/30/17! A READER JUST LET US KNOW THAT THE NOREFERRER ISSUE HAS BEEN FIXED! TINYMCE NO LONGER FORCES NOREFERRER TO BE ATTRIBUTED TO EXTERNAL LINKS THAT OPEN IN NEW TABS! - V 4.6.3
    meaning we must have onlder version of editor ?

    confusing stuff
    Last edited by Pete Young; April 1, 2019 at 12:16 PM.
    Getting Started or Starting Over with Your Classified Site? then Get Ready Set Fly V 4.7.1 > quietSecrets.net

  5. #5
    Hello Pete, if you like to force ckeditor to save all links with nofollow and _blank, use
    Code:
    Only registered members can view the code.
    If you like to permit users to define links with nofollow and _blank , use
    Code:
    Only registered members can view the code.
    You can use _top,noreferrer,noopener with above arrays

  6. #6
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    ok thanks Bahram, will try this tonight.

    Wish I new how to program with this stuff, getting better slowly.
    Getting Started or Starting Over with Your Classified Site? then Get Ready Set Fly V 4.7.1 > quietSecrets.net

  7. #7
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    $config->set('Attr.AllowedFrameTargets', array('_blank'));
    $config->set('HTML.Nofollow', true);
    All good I used a combination, but all good options, thank you again.

    Pete
    Getting Started or Starting Over with Your Classified Site? then Get Ready Set Fly V 4.7.1 > quietSecrets.net

  8. #8
    Member
    Join Date
    Jan 2019
    Location
    uk
    Posts
    47
    hi where does this code go ?

  9. #9
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Quote Originally Posted by Andrew Wildsmith View Post
    hi where does this code go ?
    follow the links in post #2
    Getting Started or Starting Over with Your Classified Site? then Get Ready Set Fly V 4.7.1 > quietSecrets.net

+ Reply to Thread