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

  • SEARCH
  • Home
  • 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 7810351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:44:45+00:00 2026-06-02T03:44:45+00:00

What I’m trying to achieve is to secretly edit some html code before I

  • 0

What I’m trying to achieve is to “secretly” edit some html code before I paste it into an HTMLEditor. Can anyone think of a way of doing something like this in JavaFX 2?

  • 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-06-02T03:44:46+00:00Added an answer on June 2, 2026 at 3:44 am

    Normally what you can do is add a ChangeListener to a property which is changing (for example a TextArea‘s TextProperty) inspect the new value in the change listener and modify it to something you want. This strategy is not exactly the same as a TransferHandler, but (I think) would work in some places where you would have used a TransferHandler in Swing. Unfortunately, in the case of a HtmlEditor, you would not be able to use such a strategy because HtmlEditor text is not implemented as a listenable property (although there is a request to make it a property in a future JavaFX release: RT-18436).

    Looking at the JavaFX drag and drop documentation, JavaFX does support a TransferMode which can be queried on reception of a drag event to perform different actions (such as copying, linking or moving data).

    Also, if you look at example 6 from the drag and drop documentation, you can see that it is possible to set an onDragDropped event handler for a node which can intercept the DragEvent and take appropriate action at that time (such as setting the htmlText of the HtmlEditor to a modified version of the dragged data). If you have difficulty overriding the default onDragDropped function of the HtmlEditor, then you could place an event filter on the HtmlEditor which allows you to catch, handle and consume the relevant drag event as you wish.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Does anyone know how can I replace this 2 symbol below from the string
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text

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.