 | |  |
 |

MikeB
Staff
/ Moderator

Sep 14, 2005, 4:33 PM
Post #1 of 19
(9034 views)
Shortcut
|
Tutorial : Pasting content from Word into the WYSIWYG editor
|
Can't Post
|
|
Hi Everyone, I've come across a bit of code that I think will be pretty helpful if you're using Article Manager 1.40 and the new WYSIWYG editor. In the new editor there is actually a button you can use that will strip out most of the code that is added when you paste Microsoft Word content into Article Manager. To add this button you'll want to open up /templates/interface/_interface.html in an HTML/Text editor of your choice. I'd recommend making a backup of this file before you make any changes to it. I've also attached a copy of _interface.html with my post that you can upload onto your server and use. If you're going to make the change yourself you'll want to find this line of code (it should be around line 185): "JustifyLeft","JustifyCenter","JustifyRight", "|","Numbering","Bullets","Indent","Outdent", "BRK", You can make a quick modification to this line so it looks like this: "JustifyLeft","JustifyCenter","JustifyRight", "|","Numbering","Bullets","Indent","Outdent", "|","PasteWord", "BRK", You can then save this template file re-upload it back onto your server. To use the new "Paste from Word" button, simply copy your content from Word, click the "Paste from Word" button in the WYSIWYG editor and paste your Word content into the popup window. If you view the source of your content in Article Manager you'll see that most of the extra code that is usually added by Word is not there. I hope you find this helpful and if you have any questions you can feel free to let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
(This post was edited by MikeB on Oct 6, 2005, 3:18 PM)
|
|
Attachments:
|
_interface.html
(25.1 KB)
|
|
|  |
 |

Andres
User
Oct 11, 2005, 5:09 PM
Post #2 of 19
(8609 views)
Shortcut
|
|
Re: [MikeB] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Mike. It is great news. I had troubles with font sizes. Different authors are with different adjustment in MS Word and AM is not fixing it to default. Some fonts are bigger, other smaller. Depend of authors savings. Hope after this changes will it working. Andres
|
|
|  |
 |

George_h
User
Oct 12, 2005, 8:33 AM
Post #3 of 19
(8330 views)
Shortcut
|
|
Re: [MikeB] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hi Mike Thank you so much for this add-on. I used to have to copy in word and paste into a text file and then copy again to paste into AM. You have halved my work Thanks again Kind Regards George
|
|
|  |
 |

evangelista
User
Oct 14, 2005, 10:15 AM
Post #4 of 19
(8211 views)
Shortcut
|
|
Re: [George_h] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Suh-wheet! You were just in time... I have a city gov't client going online, with hundreds of ordinance articles, ALL pasted from Word. They are doing this next week, and I have been sweating the formatting - this is just awesome. Thanks so much!
|
|
|  |
 |

Andres
User
Oct 15, 2005, 4:51 PM
Post #5 of 19
(8186 views)
Shortcut
|
Re: [MikeB] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Mike. Thanks for this present. Just made it few minutes ago. It is working great. And of course. It is taking less time than before. Andres
|
|
|  |
 |

glevine
User
Dec 21, 2005, 2:12 PM
Post #6 of 19
(7101 views)
Shortcut
|
|
Re: [Andres] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
I copied from Word and pasted into the wysiwyg editor as described above but for some reason a portion of the content gets <a name="OLE_LINK1"></a> wrapped around it. I guess the Office clipboard is doing this and that the paste-Word component of the wysiwyg editor doesn't strip this out. I was hoping that someone might have an idea as to how to avoid this issue from occuring again. This link contains what is happening (go to the paragraph in red and you will see that part of the content is marked as a link and therefore has the visual behavior of a link as specified by my stylesheets): http://www.baseballamerica.com/stage/college/features/3.html This link contains what would be correct: http://www.baseballamerica.com/stage/college/features/2.html Thanks
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 22, 2005, 9:12 AM
Post #7 of 19
(7085 views)
Shortcut
|
|
Re: [glevine] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hi there. Is there anyway you could post up the word doc you’re using here? I am not quite sure why that extra code is coming in just yet, but if I had the file to play around with, it would be much easier to narrow down a solution. How does that sound? I look forward to hearing from you . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

glevine
User
Dec 22, 2005, 9:38 AM
Post #8 of 19
(7083 views)
Shortcut
|
|
Re: [ross] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
the doc is attached Would you mind letting me know when you have downloaded this file and don't need it attached anymore? The content in that file is copyrighted premium content from my company and I would prefer not to leave it hanging out there too long.
(This post was edited by Cliff on Dec 22, 2005, 3:19 PM)
|
|
|  |
 |

Cliff
Staff

Dec 22, 2005, 5:09 PM
Post #9 of 19
(7067 views)
Shortcut
|
|
Re: [glevine] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hi glevine, I've taken a look at the document there, and it looks like the Word formatting option is working the way that it should. It's not going to remove a link that is in a document, as a link really isn't formatting. What this option does is take out any unneeded code from the document for you, so links will be preserved. A quick way to get rid of this is to take the Word content, copy it with Ctrl + C, open up a text program like Notepad, and paste it in with Ctrl + V. Then do the same thing back into Word and then into Article Manager and you will shake that <a> tag. The other option is to just open up the HTML view and remove it from there. I hope that helps explain, but let me know if you need any more details. Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

glevine
User
Dec 22, 2005, 9:42 PM
Post #10 of 19
(7055 views)
Shortcut
|
|
Re: [Cliff] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Thanks for the response Cliff. And a special thanks for removing the attachment for me.
|
|
|  |
 |

glevine
User
Jan 17, 2006, 1:30 PM
Post #11 of 19
(6790 views)
Shortcut
|
|
Re: [glevine] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
I started to post some articles using a Mac OSX 10.4 and Firefox 1.0. After using a Windows PC for the bulk of the testing I thought the Paste from Word button would work exactly as I needed it to. When I clicked on the Paste from Word button while on the Mac the window for pasting content opened and I tried APPLE+V, CTRL+V, and Edit-->Paste, but Firefox will not seem to allow text from Word to be pasted into the window. It also appears that you can't paste from Word directly into the Content form using FF for Mac. Does anyone know of a workaround for this? The documentation claims that a Mac/FF setup will work with the WYSIWYG editor, but this is clearly failing for me.
|
|
|  |
 |

Andres
User
Jan 17, 2006, 2:12 PM
Post #12 of 19
(6789 views)
Shortcut
|
|
Re: [glevine] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hello. One of my AM users also can"t paste from word to IE. I think the reason is some modification in IE or XP. Andres
|
|
|  |
 |

glevine
User
Jan 17, 2006, 2:22 PM
Post #13 of 19
(6787 views)
Shortcut
|
|
Re: [Andres] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
I think I saw a post around on these forums that might help you with that. I know I was successful with FF and IE on XP using the instructions above and some changes relating to the <br> tags.
(This post was edited by glevine on Jan 17, 2006, 2:23 PM)
|
|
|  |
 |

johncesta
User
May 5, 2006, 8:19 PM
Post #15 of 19
(5607 views)
Shortcut
|
|
Re: [johncesta] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
I can't get it to work with firefox either. At least the paste from word dialog opens but nothing pastes into it. I am running on windows server 2000 latest updates patches etc. I'll have to remove the _interface.html John.
|
|
|  |
 |

ross
Staff
/ Moderator

May 7, 2006, 9:15 AM
Post #16 of 19
(5585 views)
Shortcut
|
|
Re: [johncesta] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hi John. Thanks for posting! I must admit that I am not 100% why the paste from word button isn’t quite working for you here but if you wanted to send me in a support request I can take a closer look at it for you: https://www.interactivetools.com/support/email_support.cgi I have used the paste from word button on many occasions so I know it works and that it works really well. I look forward to hearing from you so we can get this all sorted out . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Andres
User
May 7, 2006, 12:54 PM
Post #17 of 19
(5581 views)
Shortcut
|
|
Re: [ross] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hello. One of users on my web magazine can"t paste into box. I think reason is something in Windows or IE. Maybe can it work to paste from Wordpad. Andres
|
|
|  |
 |

ross
Staff
/ Moderator

May 7, 2006, 2:42 PM
Post #18 of 19
(5577 views)
Shortcut
|
|
Re: [Andres] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hi Andres. Thanks for posting! I am going to need a bit more detail on this one if you don’t mind though . Maybe we could just take a look at this through a support request: https://www.interactivetools.com/support/email_support.cgi That way, I can try some tests right on your server. How does that sound? I look forward to hearing from you . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Andres
User
May 7, 2006, 3:05 PM
Post #19 of 19
(5576 views)
Shortcut
|
|
Re: [ross] Tutorial : Pasting content from Word into the WYSIWYG editor
[In reply to]
|
Can't Post
|
|
Hello Ross. I can write on support, but since it is only one user, I think there is something with his windows. Actually has he fixed problem, but I do not know how. Andres
|
|
|  |
|