Need to add "publish" feature to the page editor, item editing section. (Under the "More" section would be ideal). How can I do this?

Need to add "publish" feature to the page editor, item editing section. (Under the "More" section would be ideal). How can I do this?

On
We can achieve it without any code change.
<command name="webedit:publish" type="Sitecore.Shell.Framework.Commands.PublishItem,Sitecore.Kernel" />
Add the above entry in Commands.config file. This file is available in include folder.
Thanks
Fenil
First you need to create a command class. The simplest version would be:
Register new command in
Sitecore.config(orCommands.config):Then:
/sitecore/content/Applications/WebEdit/Common Field Buttons/Edit related itemPublish related itemClickproperty of this item tomy:publishHeader,Icon,Tooltip)