Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:36:25+00:00 2026-05-23T18:36:25+00:00

The environment is a java web app with jquery and jquery-ui on the front

  • 0

The environment is a java web app with jquery and jquery-ui on the front end. There is an admin site where they can create content that appears on the “participant” site.

The client wants a WYSIWYG type editor on the admin site so they can stick HTML into textareas that appear on the participant site. I’ve been looking at a few of them, and did some experiments with cleditor and it seems to be easy to use and it does most of what I want. I was also advised to use the AntiSamy plugin on the back end to prevent their “admins” from adding malicious code – I guess they don’t trust their admins all that much.

But I’ve got one requirement that has me scratching my head. They want any hyper links added to the textareas to go into another window (and not a different window each time). So basically they want a target="myWindow" in each href, I guess. And they want this to apply whether they create the hyperlink in the editor, or if they paste a Word document that has a hyperlink in it, which appears to be something they do a lot.

My question is how to go about applying this target to all the hrefs. Is there a wysiwyg editor that will do it, or can it be done in the AntiSamy plugin (since it’s already parsing the html) or do I need to do it somewhere between the two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:36:25+00:00Added an answer on May 23, 2026 at 6:36 pm

    I would handle it in the JavaScript on the page as the user submits the form. You can iterate through all of the anchor tags and add the necessary target bits to the end. The process would be similar to the answer here:

    jQuery – Change the anchor tag in CLEditor

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java web app that offloads some environment specific settings (Hibernate configurations,
How do I set environment variables from Java? I see that I can do
Many Java applications that use shell scripts to configure their environment use the JAVA_HOME
They recommend using JTA transaction support in Java EE environment. But how to configure
Can someone advice which is the recommended version of Java Runtime Environment for Windows
We have a large web app installation, using Apache/Tomcat/Jasper and jboss. In development environment,
I have a bunch of properties (configurations) that can change per environment. However these
I am trying to build a web app that will be able to run
I am facing an strange issue. I developed java web app in java 6
I'm studying RESTful web service using Java. My environment is using Netbean with GlassFish

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.