homepage Welcome to WebmasterWorld Guest from 54.166.53.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
ms fp 2003
Code driving me crazy!
Roxster

5+ Year Member



 
Msg#: 3077490 posted 7:04 pm on Sep 9, 2006 (gmt 0)

F</span>actory Color Matched</td>
For some reason the span tag keeps getting in the way mid words. FP keeps sticking it in, can anyone tell me why? Even weirder why midword? I am doing a little cut and pasting and rewording to keep pages/tables consistant looking. For example the header on the top that reads Store > Category > Page is one thing getting copied around.

 

rokec

5+ Year Member



 
Msg#: 3077490 posted 6:49 am on Sep 10, 2006 (gmt 0)

FRONT PAGE my recommendation: Don't use it. Use better programs such as MX Dreamweaver.

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3077490 posted 5:48 am on Sep 11, 2006 (gmt 0)

As a WYSIWYG FP attempts to retain all formatting when copying from IE or an Office program and pasting into the WYSIWYG editor window. That's why it's putting that <span> in there.

You have a couple options. Copy and paste the content to a text editor like Notepad or Wordpad as an intermediate step and then paste into FP.

Another option is to Paste Special from the Edit menu.

A third option might be to paste into Code view and then add the tags around the content yourself.

Wlauzon

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3077490 posted 4:55 am on Sep 12, 2006 (gmt 0)

The problem is not what you are pasting TO (FP), it is what you are pasting FROM - it has some extra, perhaps hidden chars in there.

As the previous poster said, the only sure way is to paste into notepad, which removes ALL junk, then back to FP.

europeforvisitors



 
Msg#: 3077490 posted 3:44 pm on Sep 12, 2006 (gmt 0)

FRONT PAGE my recommendation: Don't use it. Use better programs such as MX Dreamweaver.

As others have pointed out, the problem isn't with FrontPage, it's with the source material (and with knowing--or not knowing--how to use the program).

pageoneresults

WebmasterWorld Senior Member pageoneresults us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3077490 posted 3:51 pm on Sep 12, 2006 (gmt 0)

For some reason the span tag keeps getting in the way mid words.

This typically happens when you cut from another page in FP that has embedded styles and then you paste into another page that does not have those embedded styles. But, I'm not sure why you are experiencing mid word chops like that. Unless of course you are cutting that first letter from another page and pasting into the page in question? I wouldn't think so, but that may cause something like this.

What is in the opening <span> element?

Wlauzon

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3077490 posted 7:42 pm on Sep 12, 2006 (gmt 0)

FRONT PAGE my recommendation: Don't use it. Use better programs such as MX Dreamweaver.

I don't see where he asked about how good or bad FP was, or what other program he should be using.

jimbeetle

WebmasterWorld Senior Member jimbeetle us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3077490 posted 7:56 pm on Sep 12, 2006 (gmt 0)

[quote]extra, perhaps hidden chars in there[/qqote]

I sometimes pick up some seemingly extra bits when copying & pasting in design view, though it's often parts of positioned image calls.

As suggested, working in code or split view can help you narrow down the exact cause, or the handy-dany "Reveal Tags" (CTRL /) might uncover it.

Roxster

5+ Year Member



 
Msg#: 3077490 posted 2:21 pm on Sep 13, 2006 (gmt 0)

I copied from frontpage on one page, than pasted into the other page.
After editing the html to look right, I copied in design view and pasted to the next page which repeated the error.

<a href="http://www.my domain.com/">
<span lang="en-us">H</span></a><span lang="en-us"><a href="http://www.my domain.com/">ome</a> &gt;
<a href="index.aspx">product category</a> &gt;
detail page description </span></td>
</tr>
Maybe I am grabbing an extra element that FP doesn't like.

To comment on FP vs DW: I fluent both. Neither are perfect and I find my favorite way to get good code is to write HTML in FP code view for the color coding or in wordpad for a different set of reasons. For simplicity my problem is FP sticking in a span tag and while I don't blame FP2003 for it, I'd like to know how to prevent it in the future.

pageoneresults

WebmasterWorld Senior Member pageoneresults us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3077490 posted 2:33 pm on Sep 13, 2006 (gmt 0)

Do a search in Google for...

frontpage inserting <span lang="en-us">

If you are using FP2002, you may need to apply a patch. Here's an article from MS...

[support.microsoft.com...]

Span Lang Tag Inserted if Keyboard and Language Do Not Match
If you set the page language to a language different from the keyboard language, any text that you type on the page is encapsulated with the following tag:
<span lang="keyboard language code"> SP-1 changes this behavior so that this tag is used only when the keyboard and page language use different code pages.

Roxster

5+ Year Member



 
Msg#: 3077490 posted 3:27 pm on Sep 13, 2006 (gmt 0)

Good idea jimbeetle.

When I fix the html to normal. When I select in design/code spit view I see that it grabs the text, but won't keep the link.
Selecting this:
<a href="http://www.my domain.com/">Home</a> &gt;
<a href="index.aspx">category</a> &gt; Product description
Selects this in code view:
Home</a> &gt;
<a href="index.aspx">category</a> &gt; Product description

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved