- Write the following in the head section of your masterpage:
<script type="text/javascript">
var _fV4UI = true;
</script>
<script type="text/javascript">
function disablePasteForRTE()
{
Type.registerNamespace("RTE");
if (RTE)
{
if(RTE.RichTextEditor != null)
{
RTE.RichTextEditor.paste = function() { RTE.Cursor.paste(true); }
// Handle Ctrl+V short cut options in rich text editor
RTE.Cursor.$3C_0 = true;
}
}
} - Add "disablePasteForRTE()" function to the body tag at onload event:
<body style="overflow: auto" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();disablePasteForRTE();" class="nightandday"> - Restart your browser
Thursday, September 22, 2011
Remove format when copy paste in rich text editor
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment