SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WYSIWYG best practice for handling fonts faces

    I have a WYSIWYG textarea (CKeditor) in my CMS.

    Most of the users write the article first in a word document and then paste it in the textarea.

    Sometimes they paste as plain text, but sometimes not. And sometimes the articles final result is a mess because of the HTML that Word generates.

    I have problems specially with the fonts, people change font face in Word and when they paste text in the textarea, the font face used in Word remains (seems that Word uses the <font> tag.

    I'd like to know how you handle this.

    Many thanks.

  2. #2
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I know Tiny_MCE has a Word plugin that reformats word output into something valid. Maybe there is a similar plugin for CKeditor.

  3. #3
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,349
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    CKEditor already has a "Paste from Word" feature button, you just need to add the toolbar button in your configuration. http://docs.cksource.com/CKEditor_3...._Guide/Toolbar

  4. #4
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you. Yes, I'm aware of that button (and the checkbox of avoiding font changes), but it seems it does not always works ok


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •