extending contextmenu

Just added editing text node method, can you check if the approach is correct.