When using Dynamo for Revit if you experience Code Block Nodes that you can not edit the root cause may be a collision with another instance of the AvalonEdit Open Source component: ICSharpCode.AvalonEdit.dll, found in the Dynamo Core folder under Program Files and also under the Revit SDA folder. Revit Addins may pull in their own version of the dll as well, for example DisplayBindings.
A suggested workaround is to simply rename the Dynamo version of the dll so that Dynamo is forced to use the other installed one. We do not know of any adverse effects to using this workaround until we fully solve the issue.