jquerywysiwygcleditor

Change the anchor tag in CLEditor


Im using CLEditor on my website (CLEditor) and it is working well only I want to be able to set the target of links to _blank but I can't figure it out, even when looking into the source.

Is there someone who can help me make the links made by the editor have a target of _blank

Thanks


Solution

  • You could add the attribute to each link:

    $("#cleeditor iframe").contents().find("a[href]").attr("target", "_blank");