move CanvasItem methods from TextEditor to CanvasItem
make warning messages consistent