webui.directive("textarea", function() {
  return {
    restrict: "E",
    link: function(scope, element) {
      element.attr(
        "placeholder",
        element.attr("placeholder").replace(/\\n/g, "\n")
      ).bind("keydown keypress", function(event) {
        if (event.ctrlKey && event.which === 13) {
          event.preventDefault();
          scope.$close();
        }
      });
    }
  };
});

@@ -156,22 +156,101 @@
     
-element.attr(%22
+function(index, placeholder) %7B%0A          if (placeholder !== undefined) %7B%0A            return 
 plac
@@ -256,18 +256,16 @@
 ceholder
-%22)
 .replace
@@ -278,16 +278,90 @@
 g, %22%5Cn%22)
+;%0A          %7D else %7B%0A            return placeholder;%0A          %7D%0A        %7D
 %0A      )

Fix "Cannot read property 'replace' of undefined"