Etomite Community Forums: Editor or still handing the source? - Etomite Community Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Editor or still handing the source? Some problems I run into

#1 User is offline   paradoxical 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 18
  • Joined: 10-December 06

Posted 20 December 2006 - 10:50 PM

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?

#2 User is offline   DeanC 

  • Etomite Administrator
  • Group: Admin
  • Posts: 4,722
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

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.

#3 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 20 December 2006 - 11:07 PM

FCKeditor also has Paste from Word capabilities...
Attached File  paste_from_word.png (1.46K)
Number of downloads: 7

#4 User is offline   paradoxical 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 18
  • Joined: 10-December 06

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 ;)

#5 User is offline   vw53a 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 396
  • Joined: 16-January 05
  • Gender:Male
  • Location:Coevorden, NL
  • Interests:Cars, Computers and everything else technical and/or well designed.

Posted 21 December 2006 - 07:37 AM

View PostRalph, on Dec 21 2006, 12:07 AM, said:

FCKeditor also has Paste from Word capabilities...
Attachment attachment

I explicitly use the button next to it: "Paste as plain text". This only inserts the text, nothing more. After that I do the lay-out in FCKeditor itself.

#6 User is offline   paradoxical 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 18
  • Joined: 10-December 06

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..

<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 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

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 User is offline   paradoxical 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 18
  • Joined: 10-December 06

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users