Is there another way to get highlighted text(retain line breaks)?
var newProspect = function(string){
console.log(string.selectionText);
};
chrome.contextMenus.create({
title: "New Prospect",
contexts:["all"],
onclick: newProspect
});
Is there another way to get highlighted text(retain line breaks)?
var newProspect = function(string){
console.log(string.selectionText);
};
chrome.contextMenus.create({
title: "New Prospect",
contexts:["all"],
onclick: newProspect
});