MS Word paste into tinymce - retain tabulators

Posted by jdog on Stack Overflow See other posts from Stack Overflow or by jdog
Published on 2010-03-18T20:37:48Z Indexed on 2010/03/18 20:41 UTC
Read the original article Hit count: 407

Filed under:
|
|
|
|

Hi,

I have a 5 year old web application which runs tinymce 2.0.5.1 In this version it is possible - in IE 6,7,8 only to paste from MS Word and retain the tab characters. What we have done is to add a callback:

paste_insert_word_content_callback : "findtabs"

function findtabs(type, content) { if (type == "before"){ content = content.replace(/(

This functionality is important to the client as they have 100s of MS Word documents of quote templates which use tabulators for formatting.

Because of another problem suspected to be caused by TinyMCE, we'd like to upgrade to the current TinyMCE version 3.2.7

However in this version the resulting paste code does not contain anything that seems to 100% link to a tabulator. If pasted into an empty textarea, I get something like , if pasted into a

I simply a space character.

Can anyone recommend how to detect tabulators when pasting from MS Word?

© Stack Overflow or respective owner

Related posts about msword

Related posts about tinymce