Restore Images on your Digital Camera Card

Uh oh - you just took a bucketful of honeymoon photos and towards the end of the trip your friend borrows the camera and accidentally formats the memory card.  Ahhhhh!!!  Don't freak out yet. Check out Disk Doctor and get $5 off as a CWD visitor. It just may save the day.

Buy One Domain Name, Get One Free

Looking for a reliable and affordable Domain Name Registrar? Look no further than Dotster. And for a limited time, we're able to offer our visitors a buy one domain name, get one free promotion. Click here to take advantage of this offer.



Feb 09 2007

FCKEditor Paste From Word Crashes Drupal


Filed under: Content Management Systems » Drupal,
Tools:


Having Trouble Pasting From Word in FCKEditor?

You may experience this problem when copying and pasting, for example, a table that has formatting and styles applied by Word. This will cause your Drupal page, upon submitting, to not load (you will get a blank page and will lose your work).

The Solution

In order to import content from Word you will need to remove the styles and formatting, as they clutter up the code and cause the Drupal page to crash upon submission. This is especially true when it comes to tables. To do so, simply use the "paste from Word" button in FCKEditor. This will bring up a dialog box that will have the following two checkboxes:

  • Remove Formatting
  • Remove Styles

After copying and pasting your content from Word, check both of these boxes. This will effectively remove all the code clutter from the table, while preserving the HTML, that would otherwise have crashed your Drupal page. Click OK to return to the FCKEditor window.

You are now able to reapply your styles and formatting, if necessary, via FCKEditor's built in formatting and styles drop-down boxes.

Average: 5 (2 votes)
Tools:



Retain Table Format in FCKEditor?

The paste from Word button in FCKEditor appears to only half-way do the job. I still see certain HTML and style elements left in. Is there a way to paste data using FCKeditor in a way that will strip and remove all style information, with the exception of basic HTML (such as table structure)?

I need this capability primarily for the purpose of copying and pasting tables, and carrying over only the data, not the styles. In other words, I'd like to copy over plain text, but still have the data show up in a table. Is there a way to do this with FCKEditor, or maybe a customization you can develop for it?

FCKeditor and tables

We're currently searching for the same functionality. If anyone knows of a way to do this, please share your findings. Currently, your only option (that we're aware of) is to recreate the table manually, or copy and paste the "Word" stripped version of the table and then manually remove the style elements and table attributes you don't want to have.

The reason for this? You would need to configure an option that only imports the table tags (ie. table, tbody, tr, td), and not the entire table structure (ie. width, height, padding, etc.).

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br> <br />
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.