Step 1: Kindly follow my intital post to understand how java script can be used
Step 2: Refer here to understand about SPServices. This is specialized Jquery
Step 3: What is Quoted text and why must it be removed from the replies.
If we edit the replies to modify its content, it then does not hide the quoted text anymore. This view is cluttered and undesirable. There are no OOTB ways to fix this issue.
Step 7: Write the following code in a text. save as html. upload into SharePoint Document Library. Link this html page to content editor web part or write it directly in its text editor.
<html>
<head></head>
<SCRIPT type=text/javascript src="http://mysite/sites/test/MyDocs/jquery.SPServices-0.5.6.min.js"></SCRIPT>
<SCRIPT type=text/javascript>
$(document).ready(function()
{
var queryStringVals = $().SPServices.SPGetQueryString();
var ContentTypeId = queryStringVals["ContentTypeId"];
/////// CONTENT TYPE 0X0107 INDICATES WHEN NEWFORM.ASPX IS NOW USED
////// CLEAR "Body". remove quoted message.
/////// *******************************************************
{
//alert(ContentTypeId);
var bodyField = getTagFromIdentifierAndTitle("TextArea","","Body");
bodyField.value = "";
}
});
{
var len = identifier.length;
var tags = document.getElementsByTagName(tagName);
for (var i=0; i < tags.length; i++)
{
var tempString = tags[i].id;
if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length - len))
{ return tags[i]; }
}
return null;
}
</Body>
</html>
No comments:
Post a Comment