As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
for ( k in keys(nodeB.properties) ) { workingCopy.properties[k] = nodeB.properties[k]; }
I don't see why copying the cm:content property should only work for text files?
The "properties" property is a map, so you can iterate over all of the keys in the source map and set them in the destination map.for ( k in keys(nodeB.properties) ) { workingCopy.properties[k] = nodeB.properties[k]; }You may need to filter some items to prevent error messages (I think) as some properties may not be settable.