Add editor save function check path type

If path type is a function use origin path instead  check the type