I am trying to create a simple google chrome extension which can convert selected text to italics on right clicking on the menu and selecting to italics from it.
Can anybody point me in the right direction on how to do that?
I am trying to create a simple google chrome extension which can convert selected text to italics on right clicking on the menu and selecting to italics from it.
Can anybody point me in the right direction on how to do that?
I guess you probably want to add "turn into italics" into the context menu that appears when the user right clicks?
In that case, you want to add an item to the context menu through this API. Then, at the callback function, you get the tab id. From there, you can follow this answer to get the rest of the way through. Drop a line if you encounter any problems.