Re: Pasting from Word

  •  02-05-2013, 7:41 PM

    Re: Pasting from Word

    Hi Ken,

     

    thanks for the reply that accomplished what I wanted. Posting my solution here in case it is useful to anyone else:

     

    <script type='text/javascript'>
        function RichTextEditor_OnPasteFilter(editor, info) {
            var html = info.Arguments[0];
            var cmd = info.Arguments[1];
            html = html.replace(/<p>/g,"<div>");
            html = html.replace(/<\/p>/g,"</div>");
            info.ReturnValue = html;
        }
    </script>

    Out of curiosity, why isn't there a setting in config.js for this? It's not hard to change now that I know how but seems like it would be easier with a setting. 

     

    Thanks again! 

View Complete Thread