HTML Editor kit Line Space Problem

I am using the HTMLeditor Kit i want to achieve line spacing in it. i have tried two ways one by specifying the line-height attribute directly into p tag and or secondly by using the StyleConstants attribute StyleConstants attribute StyleConstants.setLineSpacing and passing the MutableAttribute Set and linespaceno into it...
In first case i m getting the same linespace irrespective whatever i mentioned in line-height, however if i save the backend generated html and open it in Internet Explorer it works fine.
In second option i get content tags and but one the tag gets centre aligned and secondsly it does not woirk properly also.
Can somebody can give me a clear insight that what i can do to achieve this line space functionality

Yes please someone explain how to change the line spacing in a text/html accepting component, in my case JEditorPane. My need is specifically this -- I want to display variable font size text including superscripts all in HTML at a single unmoving height on JEditorPane. I believe increasing the line spacing sufficiently will enable this to happen, but how does one setLineSpacing on a JEditorPane component?
Sorry I could'nt help the original post in this thread!

Similar Messages

  • HTML Editor Kit adding extra characters...urgent

    I am facing a strange problem in using HTML Editor Kit. I am using JTextPane to display the HTML data, which will support bold, italic and underline formatting.
    The problem is, when I
         1]Enter some text of length more than 71, with some spaces inside it ( Do not press enter key explicitly).
         2] And try to read that data from the editor kit.
    I find some new line characters inside the data as shown below in the example.
    Example :
    =========
    I entered "Testing the HTML Editor Kit functionality .. as well as Apply functionality too.. as these are giving some problems. what can be the reason. try to find out that..." in the Editor Pane and Editor Kit is generating the following HTML for it.
    <html>
    <head>
    </head>
    <body>
    <p name="Normal">
    Testing the HTML Editor Kit functionality .. as well as Apply
    functionality too.. as these are giving some problems. what can be the
    reason. try to find out that...
    </p>
    </body>
    </html>
    Although I haven't entered any new line between the paragraph tags, still you can find that the editor kit is adding some new line characters and 6 spaces from line to line. One consistency about this behavior is that it enters this stuff after 71 characters only with some special cases.
    How can we change this behavior. What all I need is I want the data in a simple string like
    "<html><head></head><body><p name="Normal">Testing the HTML Editor Kit functionality .. as well as Apply
    functionality too.. as these are giving some problems. what can be the reason. try to find out that...
    </p></body></html>"
    Any solution???
    Thanks
    Priyatam

    That's strange isn't it? Class HTMLWriter sets the line length for HTML output to 80 chars per line. Strangely JEditorPane seems not to ignore these newline chars although the actual newline is not performed within JEditorPane.
    See http://java.sun.com/j2se/1.3/docs/api/javax/swing/text/AbstractWriter.html#setLineLength(int)
    about how to set the line length.
    Hope that helps
    Cheers
    Ulrich

  • Line space problem in HTML editor

    Hi,
    In HTML editor , when press ENTER the cursor doesnt go to the exact next line , but it leaves 1 line behind each time.
    What can we do so that it wont leave 1 line behind ??

    Vaibss,
    What do you mean by
    it leaves 1 line behindHave you tried a shift + enter?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • New Line Space problem with iWeb 3.03

    I've just updated to iWeb 3.03.
    Now I find that for all new text on my site, the line space is crunched. It looks as normal in iWeb, but then the spacing closes up, on Safari or Firefox. This happens independently of how I space the lines, whether using Line multiples, or as point sizes, whatever. The problem has only occurred since I updated.
    Example - the bottom half of this page. I've attempted to update it several times, retyped, reformatted, I have huge line spacing on the iWeb page, but it's still crunched, online.
    http://www.trynka.net/trynka.net/Bowie.html

    Oh, and I should have mentioned, the site is hosted on a Linux server. The reason I think it's an update issue rather than a server issue is that every existing page, with the earlier version, works fine.
    I am guessing I could reinstall the older version of iWeb, but it seems a clunky workround, that's if the older version will open the newer files.

  • HTML Editor Kit

    Hi,
    I want to display following html in JEditotKit.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>ExploreCollbarativeNetworks</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    INPUT.fancyButton
              font-family: Verdana, Arial,Georgia;
              border-right: #000000 1px solid;
              border-top: #000000 1px solid;
              font-weight: bold;
              font-size: 11px;
              border-left: #000000 1px solid;
              cursor: hand;
              color: black;
              border-bottom: #000000 1px solid;
              height: 20px;
              background-color: #F3F9FF;
    <!--
    body {
         margin-left: 0px;
         margin-top: 0px;
         margin-right: 0px;
         margin-bottom: 0px;
    .style1 {
         color: #FF7830;
         font-weight: bold;
    -->
    </style>
    <link rel="stylesheet" href="style.css" type="text/css">
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function openfile()
         document.execCommand("Open",null,"index.htm")
    function Saveasfile()
         document.execCommand("SaveAs",null,"index.htm")
    function showques()
         tot=0;
         for(i=0;i<document.form1.c.length;i++)
              if(document.form1.c.checked==true)     
                   tot=tot+1                                             
         if(tot==1)
              //alert("sssssssss")
              ob=document.getElementById('table1')
              ob1=document.getElementById('p1')
              ob.style.display="block"
              ob1.style.display="none"
              document.form1.next.disabled=true
         if(tot==2)
              ob=document.getElementById('table1')
              ob1=document.getElementById('p1')
              ob.style.display="block"
              ob1.style.display="none"
              document.form1.next.disabled=false
         //alert(tot)
    function showques1()
         ob=document.getElementById('table1')
         ob1=document.getElementById('table2')
         ob.style.display="none"
         ob1.style.display="block"
         document.form1.previous1.disabled=false
    function showques2()
         ob=document.getElementById('table1')
         ob1=document.getElementById('table2')
         ob.style.display="block"
         ob1.style.display="none"
         document.form1.previous.disabled=false
    //-->
    </SCRIPT>
    <style type="text/css">
    <!--
    .style2 {font-size: 2pt}
    .style13 {color: #000000}
    .style15 {font-size: 12px}
    .style16 {font-size: 12px; color: #000000; }
    .style17 {color: #CCCCCC}
    .style19 {color: #F1F4F8}
    .style22 {color: #FFFFFF}
    -->
    </style>
    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form name="form1" method="post" action="">
    <table width="975" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td>
    <TABLE border="0" cellspacing="0" cellpadding="0" width="975" align="center">
    <TR>
    <TD width="100%" >
    <TABLE width="975" border="0" align="center" cellpadding="0" cellspacing="0">
    <TR>
    <TD >
    <table width="750%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    <table width="750" border="0" cellspacing="1" cellpadding="1" align="left" bgcolor="#FFFFFF" bordercolor="#CCCCCC">
    <tr>
    <td colspan="2"></td>
    </tr>
    <tr>
    <td colspan="2"><img src="images/forum.gif" width="94" height="31"></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    <tr bgcolor="#DDEEFF" valign="middle">
    <td width="6%" height="20" align="center"><b>  <img src="images/plusbottom1.gif" width="11" height="11" align="absmiddle" id="img" border="0"></b></td>
    <td width="94%" align="left" bgcolor="#DDEEFF">
    <b> <span class="bgcolor2">Please name your
    GM partnership? </span></b></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    <tr>
    <td colspan="2">
    <div style="display:none" id="d1">
    <table width="734" border="0" id="t1" style="display:none" align="right">
    <tr>
    <td width="10 px" valign="top" height="20" bgcolor="#EBEBEB" >
    <div align="center"><strong>Q.1</strong></div>
    </td>
    <td width="724" bgcolor="#EBEBEB" align="left" >
    <div align="justify"><b class="bgcolor1">Please
    name your GM partnership? </b> </div>
    </td>
    </tr>
    <tr>
    <td width="10 px" valign="top" height="20" align="center" ><b>Ans</b></td>
    <td width="724" align="left" >fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf </td>
    </tr>
    <tr>
    <td width="10 px" valign="top" height="20" bgcolor="#EBEBEB" >
    <div align="center"><strong>Q.2</strong></div>
    </td>
    <td width="724" bgcolor="#EBEBEB" align="left" >
    <b>What is you role on the partnership?
    </b> </td>
    </tr>
    <tr>
    <td width="10 px" valign="top" height="20" align="center" ><b>Ans</b></td>
    <td width="724" align="left" >fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr bgcolor="#DDEEFF">
    <td width="6%" bgcolor="#DDEEFF" height="20" align="center"><b >  <img src="images/plusbottom1.gif" width="11" height="11" align="absmiddle" id="img1" border="0"></b></td>
    <td width="94%" align="left"> <b> <span class="bgcolor2">Please
    name your GM partnership? </span></b></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    <tr>
    <td colspan="2">
    <div style="display:none" id="d2">
    <table width="734" border="0" style="display:none" id="t2" align="right">
    <tr bgcolor="#EBEBEB" align="left">
    <td width="10 px" valign="top" height="20" >
    <div align="center"><strong>Q.1</strong></div>
    </td>
    <td width="724" bgcolor="#EBEBEB" align="left" >
    <div align="justify"><b>Please name your
    GM partnership? </b> </div>
    </td>
    </tr>
                                                 <tr>
    <td width="10 px" valign="top" height="20" align="center" ><b>Ans</b></td>
    <td width="724" align="left" >fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf </td>
    </tr>
    <tr bgcolor="#EBEBEB" align="left">
    <td width="10 px" valign="top" height="20" >
    <div align="center"><strong>Q.2</strong></div>
    </td>
    <td width="724" align="left" >
    <div align="justify"><b>What is you role
    on the partnership? </b>
    </div>
    </td>
    </tr>
                                                 <tr>
    <td width="10 px" valign="top" height="20" align="center" ><b>Ans</b></td>
    <td width="724" align="left" >fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf fgdhsgfjhdsgfjhsdgfhd
    dsfgdsf sdgfsdjf sdgfsdjhf sdfgsdjf dsfgdjsf
    sdhjfgdsjf dsfgdsjf sdfgsdjf sdfgsdjhf
    dsfgdjshf dsfgdsjhf dsfgdsjf </td>
    </tr>
    <tr>
    <td width="10 px"> </td>
    <td height="94%" width="724" align="left"> </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2"> </td>
    </tr>
    <tr>
    <td colspan="2"> </td>
    </tr>
    <tr>
    <td colspan="2"> </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td> </td>
    </tr>
    </table>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </td>
    </tr>
    </table>
                   </form>
                   <script>
                   function show()
                        obj=document.getElementById("img")
                        obj1=document.getElementById("d1")
                        obj2=document.getElementById("t1")
                        obj3=document.getElementById("img1")
                        obj4=document.getElementById("d2")
                        obj5=document.getElementById("t2")
                        check=false
                        if(obj1.style.display=="none")
                             obj.src="images/minusbottom1.gif"
                             obj1.style.display="block"
                             obj2.style.display="block"
                             obj3.src="images/plusbottom1.gif"                         
                             obj4.style.display="none"
                             obj5.style.display="none"                         
                             check=true
                        if(!check)
                             obj.src="images/plusbottom1.gif"
                             obj1.style.display="none"
                             //alert(obj2.src)
                   function show1()
                        obj=document.getElementById("img")
                        obj1=document.getElementById("d1")
                        obj2=document.getElementById("t1")
                        obj3=document.getElementById("img1")
                        obj4=document.getElementById("d2")
                        obj5=document.getElementById("t2")
                        check=false
                        if(obj4.style.display=="none")
                             obj.src="images/plusbottom1.gif"
                             obj1.style.display="none"
                             obj2.style.display="none"
                             obj3.src="images/minusbottom1.gif"                         
                             obj4.style.display="block"
                             obj5.style.display="block"                         
                             check=true
                        if(!check)
                             obj3.src="images/plusbottom1.gif"                         
                             obj4.style.display="none"
                   </script>
                   </body>
                   </html>
    It is generated by our web designer, I am not knowing anything abt html. When i tried to display it in JEditor kit, it is not displayed properly.
    JEditorPane jPane = new javax.swing.JEditorPane();
    jPane.setDocument(getHTMLDocument());
    My getHTMLDocument() is as under :
    public HTMLDocument getHTMLDocument()
    HTMLDocument m_oHTMLMessageDoc = new HTMLDocument();
    HTMLEditorKit m_oHTMLEditor = new HTMLEditorKit();
    InputStreamReader in = null;
    m_oHTMLMessageDoc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
    try {
    in = new InputStreamReader(new FileInputStream("d:\\help.html"));
    m_oHTMLEditor.read(in, m_oHTMLMessageDoc, 0);
    catch (IOException ex) {
    ex.printStackTrace();
    catch (BadLocationException ex) {
    ex.printStackTrace();
    return m_oHTMLMessageDoc;
    It is displaying javascript functions as text.
    Can anybody please help me to display this html file.
    Thanks in advance,
    Dimple

    1) Swing related questions should be posted in the Swing forum.
    2) Use the "code" formatting tags when posting code, so the code is readable
    3) Swing components don't support JavaScript

  • How to retrieve the link's label with HTML Editor kit?

    Hi all,
    I need to retrieve the label that is on a HREF html attribute.
    In other words I need to retreive the words "Home Page" from
    this snippet:
    <b>Home Page</b>
    I have found tutorials that show how to extract the link itself
    but not the label ....:-(
    can anybody help me?
    Thanks
    Francesco

    Hi,
    if you have a HTMLDocument you can look into the element structure of this document to find a certain A tag as follows   /**
       * find the next link attribute from a given element upwards
       * through the element hierarchy
       * @param elem  the element to start looking at
       * @return the link attribute found, or null, if none was found
      public static Element findLinkElementUp(Element elem) {
        Element e = null;
        Object linkAttr = null;
        Object href = null;
        while((elem != null) && (linkAttr == null)) {
          e = elem;
          linkAttr = elem.getAttributes().getAttribute(HTML.Tag.A);
          if(linkAttr != null) {
            href = ((AttributeSet) linkAttr).getAttribute(HTML.Attribute.HREF);
          elem = elem.getParentElement();
        if(linkAttr != null && href != null) {
          return e;
        else {
          return null;
      }When this method returns an element, its start and end can be used to extract the link text.
    Ulrich

  • New HTML editor?

    Just wanted to find out how others are using/not using the
    new HTML editor in RH7.
    Our HTML files are valid, coded HTML, and what the RH editor
    does to them is, well, a bit scary. Changing tags, removing
    information, removing comments and formatting/line breaks that take
    the once well-coded HTML and make a jumble out of them.
    So far, we've just been using an external editor to edit the
    files, and just used RH to generate the files. RH has had issues
    with some XML code in our files for awhile so the editor has always
    been problematic (stripping out the XML code) but rather than an
    improvement, it seems like the new version is just worse.
    Am I missing something?

    quote:
    Originally posted by:
    Peter GraingeWhat annoying popups are bothering you?
    Sorry it took so long for me to reply--I forgot
    about the topic and my point was rhetorical anyway.
    Anyhoo, since you ask: Say I need to add a class to a
    paragraph tag (say, change <p> to <p class=caption>).
    When I press the spacebar after the p to start typing, a
    pop-up appears giving me a list of various HTML tags.
    Example:
    quote:
    <h5> ... </h5>
    <h6> ... </h6>
    <head> ... </head>
    <html> ... </html>
    ...and so on. Why? What does the list mean? Things I
    could add? What are they supposed to help me do? Isn't not
    as a shortcut to typing because if I double-click one of the listed
    items it merely inserts the code and doesn't replace the code
    that's already there so I'd end up with
    <p<h5></h5>> and end up having to spend time
    correcting that mess.
    The pop-up very nearly obscures what I'm typing and so I have
    to click elsewhere to get the pop-up to go away. And it happens
    every time.
    It's a poke in the eye. I thought the HTML editor would be
    more convenient, but now? I prefer using Notepad by an order of
    magnitude. (And it's moot anyway since the HTML editor is broken--a
    problem
    I
    described awhile back resurfaced and we're out of ideas on how
    to fix it.)

  • Single line space after enter in html editor standard

    hi,
    In html editor standard, if I press enter then it goes to 3rd line and if I press shift+enter then it goes to 2nd line.
    How can I change this shift+enter functionality to enter only.
    It should ge to 2nd line just by clicking enter only.....
    Thanks

    It's an HTML editor, NOT a text editor. It generates an HTML document fragment, NOT lines of plain text.
    Pressing return generates an HTML paragraph element (&lt;p&gt;), which is then affected by a CSS styling rule (either for the editor, the page, or the default for the browser) which is adding a margin (usually 1em, i.e. roughly 1 "line").
    Pressing shift+return generates an HTML break element (&lt;br /&gt;), which splits the current paragraph but is not subject to CSS in this case.
    If HTML structure is needed in this item, but the appearance is inappropriate, then modify the CSS. If not, use a plain textarea and display the resulting text as a &lt;pre&gt; element to preserve the whitespace as entered.

  • Html editor turkish character problem

    There is a problem in jdeveloper 10.1.3 html editor on computers with regional settings set to Turkish. In Turkish, uppercase version of "i" is "İ" (I with a dot at the top) and lowercase version of "I" is "ı". This causes a problem with html tags containing i. If you write "div" jdeveloper doesn't recognize the tag. There is no problem if you write "DIV"
    I think html editor converts every tag to uppercase (according to regional setting) in the background and then validates, so "div" becomes "DİV" and it doesn't recognise. To fix this bug, editor must ignore language settings for tags if it converts to uppercase.

    We had our share of the four Turkish "i"s. Wouldn't it be easier to just get rid of two of them? :o)
    But we had problems in our application and not in the IDE.
    If no default locale is specified, then the JVM uses the host's. So maybe it would help to specify a different locale in bin\jdev.conf by adding VM options -Duser.country and -Duser.language. What happens when you add these settings and specify "US" and "en" for example. Does that help?
    Sascha

  • Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor

    Dear All,
    I am frequently getting following error message on aspx pages on my SharePoint 2007 environment
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer.
    If the problem persists, contact your Web server administrator.
    Upon refreshing and restarting the browser several times, this error message temporarily gone and everything becomes fine. But after some time same error message starts appearing again. Also I have noticed that this error message also appears
    while working with SharePoint Designer 2007.Any clues how to resolve this issue ? 
    Any help in this regard will be greatly appreciated.
    Muhammad Tariq khan

    Hi All,
    As I regenerated the problem (Unable to display this Web Part... ) from the faulty
    user. I experience following error message in the ULS logs...
    Error while executing web part: System.Data.SqlClient.SqlException: Invalid object name 't5_sco'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
    exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler,
    SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()     at System.Data.SqlClient.SqlDataReader.get_MetaData()    
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior,
    Boolean returnStream, Boolean async)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
    behavior)     at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean& bSucceed)    
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback(String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback,
    ISPDataCallback pSchemaCallback)     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback(String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter
    pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pSchemaCallback)     at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()     at Microsoft.SharePoint.SPListItemCollection.get_Count()    
    at Microsoft.SharePoint.WebControls.SPDataSourceView.ConvertToIEnumerableWrappers(SPBaseCollection items, Int32 firstRow, Int32 rowCount, String[] fieldList)     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteSelect(DataSourceSelectArguments
    selectArguments)     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigatorInternal()    
    at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator()     at Microsoft.SharePoint.WebControls.SingleDataSource.GetXPathNavigator(IDataSource datasource, Boolean originalData)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXPathNavigator(String
    viewPath)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform()
    What does this error message mean ?
    Muhammad Tariq khan

  • Safari problem with visual HTML editor

    Hey all,
    I have an error when trying to make an auction on a big portal. Safari doesn't have built-in visual HTML editor.
    http://img403.imageshack.us/i/domerror.tif/
    Any suggestions?
    Message was edited by: moksienciuk

    HI,
    I think you'd have better luck for answers by contacting the site support area.
    You could try using the Firefox for Mac browser instead.
    http://www.apple.com/downloads/macosx/internet_utilities/mozillafirefox.html
    Always good to have a back up browser regardless and it might be more user friendly for that particular site.
    Carolyn

  • Problem with HTML Editor box in XML Form

    Hi all,
    I am using a HTML editor box in one of the XML form template. When I parse the data from HTML editor and apply my own style sheet and display in JSP page, it has no effect on it. Instead the style set by HTML editor box is being applied. Is there any way to override the style applied by HTML editor ?
    For example,
    Suppose  user enters "Hello" in HTML Editor box and saves the xml form.
    Then when I parse this data and apply my style sheet like
    <style="font-family:arial; font-size:12"><%= datafromXMLform() %>
    I should get "Hello" in arial font with size 12, instead I am getting size=1 because of style applied by html editor.
    Is there anyway to remove/override this style?
    Thanks in advance,
    Sandesh
    Edited by: sandesh kumbhar on Oct 27, 2008 4:12 PM

    Got it !!!
    In the property section of html editor in form builder , set the style as none/empty instead of standard.
    Sandesh

  • Creating a small HTML-Editor using JEditorPane

    Hello! I'm trying to create a small HTML-Editor. Via this editor users shall be capable to create formatted text (bold, italic, underlined, different sizes, different fonts, different colors). Furthermore, if the user pushes the enter-button a new line-break (<br>) shall be inserted. Basically my editor is working but with some big problems:
    1. When I create an instance of my editor, I initialize it with some html-code.
    this.m_EditorPane.setText("<html><head></head><body></body></html>"); Without this initialization between the <body> and </body> <p> and </p> will be inserted, what I don't want. But if I push now the enter-button at the beginning, <br>-tag will not be inserted in the <body>-area but in the <head>-area.
    2. Styling text is working really good, but when I insert a line-break (via enter-button), the <br>-tag is inserted after the (e.g.) closing bold-tag (</b>). So, in the next line, this style-property must be reselected.
    Can anybody help me to change this behavior?
    Kind regards, Stefan
    P.S. The way I insert the <br>-tag:
    JEditorPane editor = getEditor(ae);
    HTMLDocument doc = getHTMLDocument(editor);
    HTMLEditorKit kit = getHTMLEditorKit(editor);
    editor.replaceSelection("");
    int offset = editor.getCaretPosition();
    kit.insertHTML(doc, offset, "<br>", 0, 0, HTML.Tag.BR);
    editor.getCaret().setDot(editor.getCaretPosition());P.P.S. Sorry for my bad english :-/

    Hello! I'm trying to create a small HTML-Editor. Via this editor users shall be capable to create formatted text (bold, italic, underlined, different sizes, different fonts, different colors). Furthermore, if the user pushes the enter-button a new line-break (<br>) shall be inserted. Basically my editor is working but with some big problems:
    1. When I create an instance of my editor, I initialize it with some html-code.
    this.m_EditorPane.setText("<html><head></head><body></body></html>"); Without this initialization between the <body> and </body> <p> and </p> will be inserted, what I don't want. But if I push now the enter-button at the beginning, <br>-tag will not be inserted in the <body>-area but in the <head>-area.
    2. Styling text is working really good, but when I insert a line-break (via enter-button), the <br>-tag is inserted after the (e.g.) closing bold-tag (</b>). So, in the next line, this style-property must be reselected.
    Can anybody help me to change this behavior?
    Kind regards, Stefan
    P.S. The way I insert the <br>-tag:
    JEditorPane editor = getEditor(ae);
    HTMLDocument doc = getHTMLDocument(editor);
    HTMLEditorKit kit = getHTMLEditorKit(editor);
    editor.replaceSelection("");
    int offset = editor.getCaretPosition();
    kit.insertHTML(doc, offset, "<br>", 0, 0, HTML.Tag.BR);
    editor.getCaret().setDot(editor.getCaretPosition());P.P.S. Sorry for my bad english :-/

  • MS SharePoint 2010 Designer Workflow Email - Enhanced Rich Text Field look-up values on HTML email have large spaces

    MS InfoPath 2010 form with RTF (Rich Text Fields)
    MS SharePoint 2010 Custom Library
    MS SharePoint 2010 Designer Workflow Send Email
    http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
    https://www.nothingbutsharepoint.com/sites/eusp/pages/creating-html-emails-with-spd-workflows.aspx
    Hi all of the above work, our question is how to control the RTF (Rich Text Field) look up values to the InfoPath 2010 form in the HTML email?
    How to FORMAT the RTF look up value? in the HTML email
    EXAMPLE
    we have a InfoPath 2010 form published in the SharePoint 2010 custom list library there are 5 RTF fields (Notes1, Notes2, Notes3, Notes4, Notes5) there are other plain text fields, date fields, and other field types in the form
    We use a HTML table to make the email look like the InfoPath form, so when the users fill out the form and they get the email notification everything looks the same.
    Our problem is the EXTRA LINE SPACE in the RTF look up values
    We want to remove any leading spaces, and line spaces between HTML table cells
    Our Workflow has the HTML in a Workflow variable, as you know it does not support remote CSS it has to be in-line style for any formatting we want all cells to have
    valign="top" the email should align at the top of the cell, all field types do except the RTF look up values they make the email look bad and they contain a lot of white space.
    Please test this in your enviroment 
    <table>
    <tr><td>Title:</td><td>[%Current Item:Title%]</td><td>[%Current Item:Notes1%]</td></tr>
    <tr><td>Created by:</td><td>[%Current Item:CreatedBy%]</td><td>[%Current Item:Notes2%]</td></tr>
    <tr><td>Date Created:</td><td>[%Current Item:Created%]</td><td>[%Current Item:Notes3%]</td></tr>
    <tr><td>Modified by:</td><td>[%Current Item:ModifiedBy%]</td><td>[%Current Item:Notes4%]</td></tr>
    <tr><td>Date Modified:</td><td>[%Current Item:Modified%]</td><td>[%Current Item:Notes5%]</td></tr>
    </table>
    I could not update the question below to the proper forum section. that is why i am asking again.
    http://social.technet.microsoft.com/Forums/en-US/a7918bfb-9166-4bdb-828c-132a0c7611e3/ms-sharepoint-2010-designer-workflow-emails-huge-lines-paces-in-rich-text-fields-values-from-ms?forum=sharepointcustomization
    -Isaack

    Hi IssackB,
    perhaps you may try this article:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f8fa2a11-9f74-4dd2-b277-21ce872fdcb2/can-we-add-rich-text-editor-to-the-sharepoint-designer-2010-workflow?forum=sharepointcustomizationprevious
    there are some notes that perhaps you may check:
    Use the same font for all the controls to ensure consistent spacing between rows.
    Choose Size from the Format menu, and then choose To Fit from the menu that appears. This adjusts the size of each control, depending on the font set for the data that appears
    in the control.
    NOTE: The Print Preview and Output To commands use different algorithms for calculating text width; therefore, the text may occupy more or less
    space in the RTF file.
    Reduce the amount of blank space above and below the report controls. Any vertical
    space between the controls is converted to whole lines
    in the RTF file. For example, a
    space of .02 inches can increase to .1667 inches in the
    RTF file.
    Make sure controls on the same output row are not too close to each other or overlapping. This can cause the Output To command to omit the controls or to align the columns incorrectly
    in the RTF file.
    Use the Align command from the Format menu to ensure that a row of controls is aligned properly on the report. If a row of controls is not aligned properly, the Output To command may place the controls
    in different rows, causing extra blank
    spacein the RTF file. 
    and please have a check there are updates for exchange 2013 and will be available with the upcoming release of CU4 for Exchange 2013, that stated the format rtf was saved instead HTML. http://support.microsoft.com/kb/2862739/en-us
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Issue with HTML Editor of XML Form Builder.??

    Hi All,
    We are using HTML Editor of XML Form Builder to enter the Content. This content will be displayed to teh User by parsing these XML Files generated by the XML Form Builder Application.
    But, when we parse the XML, the other field values are coming properly, except HTML Editor field Content.
    This is working fine, only when I enter a Single line Text. If I enter some Spaces, New lines, Paragraphs, etc. the XML Parsing is not returning any Content..
    And also when I use Text Area, the total content is returning as a Single Paragraph, Even if I enter multiple lines, spaces,.
    If anyone has Idea on this, Please Help me to solve this Issue ASAP.
    Thanks&Regards||
    Ashok Kumar M.

    Hi Bala,
    It is already mapped correctly. If I enter a single line Text in HTML Editor, I am getting the same Text after Parsing. But If I enter multiple lines, spaces, new lines, etc., then the Problem.
    Thanks||
    Ashok M.

Maybe you are looking for