• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

paste text from Word into html editor

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I enable pasting in html editor to work with text taken from a Word document?
 
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JTextComponent has copy, cut and paste methods. You can call them with ctl X, C and V keys or you can add a popup menue and call them in your program. That would apply to all derived classes such as JTextField and JTextArea. Not sure about the HTML classes, though!
 
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch Krsta,
In this Tutorial you can see that JEditorPane supports the paste action.
I have been able to paste text from Notepad to a JEditorPane displaying an html file; but it did not work with "text" copied from Word.
[ February 06, 2004: Message edited by: Jose Botella ]
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have clients who copy from Word to my app's JTextArea ok. Word does use non-UTF-8 characters that show up as little squares, but you could translate them.
 
reply
    Bookmark Topic Watch Topic
  • New Topic