Results 1 to 5 of 5

Thread: JAVA WYSIWYG Editor information

  1. #1
    Join Date
    Jan 2009
    Posts
    41

    JAVA WYSIWYG Editor information

    Hi,
    I am learning JAVA. I had not started with the same yet. So as a beginner which is the best way to begin with. I prefer to go with WYSIWYG editors in the language. The GUI type interface makes it very easy to get a start with. How to get a start and I also need some sample coding for the same. The coding must be simple and understandable. I have performed some basic commands and received profound results on the same. Thanks in advance.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: JAVA WYSIWYG Editor information

    A simple WYSIWYG editor is fine to use and you can get feel of the scripting language. There ample of editors available you can get one and try the below sample. But the sample exercise can be conducted only if you have basic language of JAVA. To use a WYSIWYG editor you need a program like a DIV or a normal textarea iframe because it may indicate, for example, no graphics. Now here I am working with a div because it is a bit easier for beginners to cope. This works using the command "contentEditable" what changes I allowed in the Div. code:
    PHP Code:
    <HTML
    <
    HEAD
    <
    style type="text/css"
    # div ( 
    height200px
    width100%; 
    border1px solid # 7d7d7d; 

    </ 
    style
    </ 
    HEAD
    <
    BODY
    <
    div id="div" contentEditable
    </ 
    div
    </ 
    BODY
    </ 
    HTML

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: JAVA WYSIWYG Editor information

    As per the above post you can insert text in div. For this you will need to ntegrate other functions such as changing the font to bold or italic. This gives a opportunityto use the function "execCommand" of JavaScript. So let's create a button for the format by calling the OnClick function. This function in turn increases the selected area and puts execCommand to the desired formatting. The sample type for the same is as follows.
    PHP Code:
    HTML
    <
    HEAD
    <
    style type="text/css"
    # div ( 
    height200px
    width100%; 
    border1px solid # 7d7d7d; 

    </ 
    style
    <
    script language="javascript"
    Format command function (, content) ( 
      
    div.focus (); 
      
    document.execCommand (commandfalsecontent); 

    </ 
    script
    </ 
    HEAD
    <
    BODY
    <
    button OnClick="formatting('bold','')"Bold </ button
    <
    div id="div" contentEditable
    </ 
    div
    </ 
    BODY
    </ 
    HTML

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: JAVA WYSIWYG Editor information

    You can face a problem after working with DIV and not the textarea command. Therefore this cannot be propagated as PHP, so it writes to the database. You will need to now how to create a form with a textarea that is hidden, and in which the entire content enters the Div. If someone is driving on the Absendbutton the start using this feature OnMouseOver. After that if you face any problem with DIV and not with textarea then you can create a form with a textarea that is hidden.The problem, however, can be utilized as you can keep on adding annotations to the function that the div and the same is displayed only if JavaScript is enabled and the form field is hidden.

  5. #5
    Join Date
    Feb 2009
    Posts
    96

    Re: JAVA WYSIWYG Editor information

    download JGrasp--- pretty easy to use but it it all hard coding... The thing about JAVA, WYSIWYG isn't the best for it. JAVA is a simpler form of c# and thus just writing the code will make it easier for you to understand then to make pretty objects like in visual studio.

Similar Threads

  1. What are the functions wysiwyg editor
    By Tarjan in forum Windows Software
    Replies: 5
    Last Post: 01-04-2010, 04:14 AM
  2. Need WYSIWYG Online Web Editor
    By MaggieK in forum Software Development
    Replies: 5
    Last Post: 18-02-2010, 03:27 AM
  3. Need some information on PSPad editor
    By Aloke in forum Software Development
    Replies: 5
    Last Post: 09-01-2010, 05:57 AM
  4. Best editor for java
    By HardWeaR in forum Windows Software
    Replies: 3
    Last Post: 24-11-2009, 09:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,906,260.19913 seconds with 16 queries