I installed a site for a friend wich is kind of n00b into everything, so I want to make use of an editor. I set up the FREDCK editor and I made some pages.
Thinks look fine, but when you paste tekst in the editor and you look at the code itself, it is a disaster. I stopped ctrl-v ing code from Word since it will frell up the entire layout. I ended up removing all the <font size=10px> </font> and stuff like that by hand since a million where displayed in the tables and it it was overuling the other sizes in the document.
For me it is not a problem, but i am sure my friend is gonne freak out when he want's to change something.
Anyone has some basic advice how to take care of this, editor wise?
Page 1 of 1
Editor or still handing the source? Some problems I run into
#2
Posted 20 December 2006 - 10:52 PM
The simple answer is not to paste out of word - its a common thing word does, is insert all sorts of styling crap into the copied code... just try and open your word document on a non-M$ word processor, and you will see what I mean ;)
In Xinha, there's an option to remove all the rubbish that word inserts.
In Xinha, there's an option to remove all the rubbish that word inserts.
#3
Posted 20 December 2006 - 11:07 PM
FCKeditor also has Paste from Word capabilities...
paste_from_word.png (1.46K)
Number of downloads: 7
paste_from_word.png (1.46K)
Number of downloads: 7
#4
Posted 20 December 2006 - 11:42 PM
I am kinda new to these editors.
I found it out the hard way.. after cleaning my entire code by hand I learned to use a *.txt for the copy paste of information ;)
I found it out the hard way.. after cleaning my entire code by hand I learned to use a *.txt for the copy paste of information ;)
#5
#6
Posted 21 December 2006 - 01:35 PM
I ran into some more problems.
I made a html list in the editor, but when I do this I get alot of unwanted code in my source..
Basically I removed all the <span> poop by hand.
For me it's no problem, is there a way I can config the editor so it keeps a clean code?
I just put the <li> font size in my css... but my friend won't be avle to do that.
I made a html list in the editor, but when I do this I get alot of unwanted code in my source..
<ul> <li><font size="2"><span style="font-weight: bold;">Hal/entree;</span></font></li> <li><font size="2"><span style="font-weight: bold;">Woonkamer met tv, radio c/d speler;</span></font></li> <li><font size="2"><span style="font-weight: bold;">Open keuken met daarin:</span></font></li> <ul> <li><font size="2"><span style="font-weight: bold;">keramische kookplaat; </span></font></li> <li><font size="2"><span style="font-weight: bold;">koelkast met vriesvak; </span></font></li> <li><font size="2"><span style="font-weight: bold;">combimagnetron; </span></font></li> <li><font size="2"><span style="font-weight: bold;">koffiezetapparaat; </span></font></li> <li><font size="2"><span style="font-weight: bold;">vaatwasser; </span></font></li> <li><font size="2"><span style="font-weight: bold;">alle overige keukenbenodigdheden; </span></font></li> </ul> <li><font size="2"><span style="font-weight: bold;">3 grote slaapkamers:</span></font></li> <ul> <li><font size="2"><span style="font-weight: bold;">slaapkamer voor 2 personen; </span></font></li> <li><font size="2"><span style="font-weight: bold;">slaapkamer voor 2 personen; </span></font></li> <li><font size="2"><span style="font-weight: bold;">slaapkamer voor 2-4 personen; </span></font></li> <li><font size="2"><span style="font-weight: bold;">8 vier seizoenen dekbedden en kussens; </span></font></li> </ul> <li><font size="2"><span style="font-weight: bold;">2 badkamers:</span></font></li> <ul> <li><font size="2"><span style="font-weight: bold;">badkamer met bad en dubbele wastafel; </span></font></li> <li><font size="2"><span style="font-weight: bold;">badkamer met douche, dubbele wastafel en sauna; </span></font></li> </ul> <li><font size="2"><span style="font-weight: bold;">2 aparte wc’s met wastafel;</span></font></li> <li><font size="2"><span style="font-weight: bold;">8 tuinstoelen en een tuintafel. </span></font></li> </ul>
Basically I removed all the <span> poop by hand.
For me it's no problem, is there a way I can config the editor so it keeps a clean code?
I just put the <li> font size in my css... but my friend won't be avle to do that.
#7
Posted 21 December 2006 - 02:30 PM
The only way to keep code clean is to keep it clean from the start... You must have attempted to bold the text, otherwise it wouldn't have been bolded... And the logic of bolding in the editor is based on an element by element basis... If you want to bold a block then you need to create a custom block, like a div, and then use a style class... Some of the editors do have code cleaners built into them and will have buttons in the toolbars if the feature is enabled... Remember, we don't write the WYSIWYG editors, we merely make attempts to integrate the editors into the Etomite code base... Any editor specific questions should be directed to the support forums for the individual editors... If the editors don't conform to your programming practices then you should compose your HTML markup externally and then paste it as straight text rather than as Rich Text into a WYSIWYG editor... You can turn off Rich Text either on a document by document basis or as the system default within the Etomite configuration panel...
#8
Posted 21 December 2006 - 03:21 PM
Yes.
Thanks for the comment.
My plan is the get used to one of the editors out there and customize it to my need.
Thanks for the comment.
My plan is the get used to one of the editors out there and customize it to my need.
Share this topic:
Page 1 of 1


Help
Back to top
MultiQuote










