Question with Copy-Paste

Javier
2007-03-07
2013-02-28
  • Javier

    Javier - 2007-03-07

    Hi.

    Although there isn´t any messages in the forum I'll put it.

    First of all, congratulations for your work.

    If I copy text (i.e. a single word "hello") from a Web page
    and the i try to paste it, if the web page is in frames,
    the code html generated isn't
    <p>hello</p>

    It includes the word into various tables. I suppose it tries
    to simulate the original web page.

    Any ideas to changes this behaviour?

    Thanks

    Janfry

     
    • Dimitry Polivaev

      Hi,

      I have tried to paste some text from the right frame from http://java.sun.com/javaee/5/docs/tutorial/doc/index.html using firefox 2.0.0.2 and Windows 2000. I have not seen the reported problem.

      What site and what browser does produce it?

      Dimitry

       
    • Javier

      Javier - 2007-03-08

      As you say, with Firefox there is no problem.

      However, I'm trying with Internet Explorer and Windows XP.

      Try the link http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html , then copy the first words "You may have heard of Maven 2", and
      the paste generates the table tag:

          <div class="topline">
            <table cellpadding="2" id="main" width="100%" cellspacing="2" border="0">
              <tbody>
             

              <tr>
                <td valign="top" width="100%">
                  <p>
                    You may have heard of Maven 2
                  </p>
                </td>
              </tr>
              </tbody>
             
            </table>
          </div>

      Any ideas to solve it with Internet Explorer?

      Janfry

       
      • Dimitry Polivaev

        I get the same results as you, because this text is placed inside of the table.
        To see it try following steps:

        1. Go to the specified page, select all (ctrl+A ? ), copy it and paste the whole page in the simplyhtml
        2. SimplyHTML->Misc->Show Element Tree
        3. Turn back to the editor window ans select the text "You may have heard of Maven 2"
        4. Look at the Element Tree window. You can see the element insife of its structure.

        I do not see any way to eliminate the table around this text.

        Dimitry

         
    • Javier

      Javier - 2007-03-09

      At the moment, I'll use FireFox then.

      Thanks for your help.

      Janfry

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks