MS Word paste into tinymce - retain tabulators
- by jdog
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?