code: function(element) {
              var textContent = wysihtml5.lang.string(dom.getTextContent(element)).trim();
              if (textContent.substr(0, 4) === "www.") {
                textContent = "http://" + textContent;
              }
              return textContent;
            }
docs: Assuming we have the following: <a href="http://www.google.de">http://www.google.de</a> If a user now changes the url in the innerHTML we want to make sure that it's synchronized with the href attribute (as long as the innerHTML is still a url)