{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":"4DB356F4-A7CB-4C62-87D7-4868CC66A675","shape":{"__isSmartRef__":true,"id":1},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"MarkdownText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2},"eventHandler":{"__isSmartRef__":true,"id":30},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","4FF8DA20-9BF4-402C-8A4F-B6F4BB8E695B"],"partTests":{"__isSmartRef__":true,"id":31},"_ClipMode":"auto","moved":true,"savedMarkup":"## This is markdown text\n\nTo edit it simply *double click* in the text. To go back to the rendered view double click again.\n\nMarkdown is a simple to read and write markup syntax that is great for structured content and displaying code, both `inline` and formatted:\n\n    this.foo();\n    bar();\n\nYou can find a syntax overview [here](http://daringfireball.net/projects/markdown/syntax). The JavaScript-based rendering is implemented by [showdown.js](https://github.com/coreyti/showdown).\n\n* * *\n\n#### Images:\n\n![](http://lively-kernel.org/repository/webwerkstatt/media/hpi_logo_wb_rhi.png)\n\n\n#### Lists:\n\n1. this\n2. is\n3. a simple\n4. list\n    * this is nested\n    * simply by indenting\n\n\n#### buttons and inputs\n\n<button onclick=\"alert('test')\">test</button>\n\n<form>\n<input type=\"text\" size=\"30\"/>\n</form>","showsMarkdown":true,"#startLetters":"add","_StyleClassNames":["markdown"],"prevScroll":[0,0],"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":36},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(284.0,-15.0)"},"1":{"_BorderWidth":4.144,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"double","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(610.0,434.0)","_BorderColor":"Color.rgb(191,191,191)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"2":{"partsSpaceName":"PartsBin/Text","comment":"Markdown text, uses the markdown translator showdown.js","migrationLevel":7,"partName":"MarkdownText","changes":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":13},{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":17},{"__isSmartRef__":true,"id":19},{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":25},{"__isSmartRef__":true,"id":27}],"lastModifiedDate":{"__isSmartRef__":true,"id":29},"requiredModules":["apps.Markdown"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3":{"date":{"__isSmartRef__":true,"id":4},"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20"},"4":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"5":{"date":{"__isSmartRef__":true,"id":6},"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2"},"6":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"7":{"date":{"__isSmartRef__":true,"id":8},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"8":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"9":{"date":{"__isSmartRef__":true,"id":10},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"10":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"11":{"date":{"__isSmartRef__":true,"id":12},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"12":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"13":{"date":{"__isSmartRef__":true,"id":14},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"14":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"15":{"date":{"__isSmartRef__":true,"id":16},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"17":{"date":{"__isSmartRef__":true,"id":18},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"18":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"19":{"date":{"__isSmartRef__":true,"id":20},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"20":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"21":{"date":{"__isSmartRef__":true,"id":22},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"22":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"23":{"date":{"__isSmartRef__":true,"id":24},"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8"},"24":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"25":{"date":{"__isSmartRef__":true,"id":26},"author":"robertkrahn","message":"no comment","id":"35CAD305-1566-4A4F-BB7A-CCB6ACDE20D8"},"26":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:46:08 GMT-0700 (PDT)"},"27":{"date":{"__isSmartRef__":true,"id":28},"author":"robertkrahn","message":"no comment","id":"788CCC43-624C-43F4-A6F6-444A6AAEEBBB"},"28":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:46:18 GMT-0700 (PDT)"},"29":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:46:08 GMT-0700 (PDT)"},"30":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"31":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32}},"32":{"test01IsMorph":{"__isSmartRef__":true,"id":33}},"33":{"varMapping":{"__isSmartRef__":true,"id":34},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":35},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34":{"this":{"__isSmartRef__":true,"id":31}},"35":{},"36":{"jQueryNode":{"__isSmartRef__":true,"id":37},"onDoubleClick":{"__isSmartRef__":true,"id":45},"onLoad":{"__isSmartRef__":true,"id":49},"onMouseOut":{"__isSmartRef__":true,"id":53},"onMouseOver":{"__isSmartRef__":true,"id":61},"reset":{"__isSmartRef__":true,"id":65},"setTextFromMorph":{"__isSmartRef__":true,"id":69},"showMarkdown":{"__isSmartRef__":true,"id":73},"showSource":{"__isSmartRef__":true,"id":77},"removeEditor":{"__isSmartRef__":true,"id":81},"addEditor":{"__isSmartRef__":true,"id":85},"prepareForNewRenderContext":{"__isSmartRef__":true,"id":89}},"37":{"varMapping":{"__isSmartRef__":true,"id":38},"source":"function jQueryNode() {\n    return this.renderContext().shapeNode\n}","funcProperties":{"__isSmartRef__":true,"id":43},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"38":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":39}},"39":{"$super":{"__isSmartRef__":true,"id":40}},"40":{"varMapping":{"__isSmartRef__":true,"id":41},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41":{"obj":{"__isSmartRef__":true,"id":0},"name":"jQueryNode"},"42":{},"43":{"timestamp":{"__isSmartRef__":true,"id":44},"user":"robertkrahn","tags":[]},"44":{"isSerializedDate":true,"string":"Sat Mar 16 2013 03:58:37 GMT-0700 (PDT)"},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function onDoubleClick(evt) {\n    this.showsMarkdown ? this.showSource() : this.showMarkdown();\n}","funcProperties":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"46":{"this":{"__isSmartRef__":true,"id":0}},"47":{"timestamp":{"__isSmartRef__":true,"id":48},"user":"robertkrahn","tags":[]},"48":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:27:26 GMT-0700 (PDT)"},"49":{"varMapping":{"__isSmartRef__":true,"id":50},"source":"function onLoad() {\n    this.showMarkdown.bind(this).delay(0);\n}","funcProperties":{"__isSmartRef__":true,"id":51},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"50":{"this":{"__isSmartRef__":true,"id":0}},"51":{"timestamp":{"__isSmartRef__":true,"id":52},"user":"robertkrahn","tags":[]},"52":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:34:34 GMT-0700 (PDT)"},"53":{"varMapping":{"__isSmartRef__":true,"id":54},"source":"function onMouseOut(evt) {\n    // if (this.fullContainsWorldPoint(evt.getPosition())) return;\n    // this.showMarkdown();\n}","funcProperties":{"__isSmartRef__":true,"id":59},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"54":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":55}},"55":{"$super":{"__isSmartRef__":true,"id":56}},"56":{"varMapping":{"__isSmartRef__":true,"id":57},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":58},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"57":{"obj":{"__isSmartRef__":true,"id":0},"name":"onMouseOut"},"58":{},"59":{"timestamp":{"__isSmartRef__":true,"id":60},"user":"robertkrahn","tags":[]},"60":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:12:51 GMT-0700 (PDT)"},"61":{"varMapping":{"__isSmartRef__":true,"id":62},"source":"function onMouseOver(evt) {\n    // if (!this.showsMarkdown) return;\n    // this.showSource();\n}","funcProperties":{"__isSmartRef__":true,"id":63},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"62":{"this":{"__isSmartRef__":true,"id":0}},"63":{"timestamp":{"__isSmartRef__":true,"id":64},"user":"robertkrahn","tags":[]},"64":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:12:54 GMT-0700 (PDT)"},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"source":"function reset() {\n    this.savedMarkup = '';\n    this.setClipMode('auto');\n    this.addStyleClassName('markdown');\n    this.getPartsBinMetaInfo().requiredModules = ['apps.Markdown'];\n}","funcProperties":{"__isSmartRef__":true,"id":67},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"66":{"this":{"__isSmartRef__":true,"id":0}},"67":{"timestamp":{"__isSmartRef__":true,"id":68},"user":"robertkrahn","tags":[]},"68":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:33:12 GMT-0700 (PDT)"},"69":{"varMapping":{"__isSmartRef__":true,"id":70},"source":"function setTextFromMorph(morph) {\n    /*\n    this.setTextFromMorph(this.get('BuildspecNotes'))\n    */\n    \n    this.savedMarkup = morph.textString;\n    this.showMarkdown();\n}","funcProperties":{"__isSmartRef__":true,"id":71},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"70":{"this":{"__isSmartRef__":true,"id":0}},"71":{"timestamp":{"__isSmartRef__":true,"id":72},"user":"robertkrahn","tags":[]},"72":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:06:01 GMT-0700 (PDT)"},"73":{"varMapping":{"__isSmartRef__":true,"id":74},"source":"function showMarkdown() {\n    // this.showMarkdown()\n    this.showsMarkdown = true;\n    this.removeEditor();\n    var markup = this.savedMarkup,\n        converter = new Showdown.converter(),\n        html = converter.makeHtml(markup);\n    this.savedMarkup = markup;\n    $(html).appendTo(this.jQuery());\n}","funcProperties":{"__isSmartRef__":true,"id":75},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"74":{"this":{"__isSmartRef__":true,"id":0}},"75":{"timestamp":{"__isSmartRef__":true,"id":76},"user":"robertkrahn","tags":[]},"76":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:39:19 GMT-0700 (PDT)"},"77":{"varMapping":{"__isSmartRef__":true,"id":78},"source":"function showSource() {\n    /*\n        this.showSource();\n        this.showMarkdown();\n    */\n    this.showsMarkdown = false;\n    this.jQuery().html('');\n    // this.jQuery().append(this.renderContext().textNode);\n    this.addEditor();\n}","funcProperties":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"78":{"this":{"__isSmartRef__":true,"id":0}},"79":{"timestamp":{"__isSmartRef__":true,"id":80},"user":"robertkrahn","tags":[]},"80":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:25:53 GMT-0700 (PDT)"},"81":{"varMapping":{"__isSmartRef__":true,"id":82},"source":"function removeEditor() {\n    if (!this.editor) return;\n    var e = this.editor;\n    e.withAceDo(function(ed) {\n        ed.session.removeEventListener('change', e.markdownMirror); });\n    e.remove();\n    delete this.editor;\n}","funcProperties":{"__isSmartRef__":true,"id":83},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"82":{"this":{"__isSmartRef__":true,"id":0}},"83":{"timestamp":{"__isSmartRef__":true,"id":84},"user":"robertkrahn","tags":[]},"84":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:20:32 GMT-0700 (PDT)"},"85":{"varMapping":{"__isSmartRef__":true,"id":86},"source":"function addEditor() {\n    this.removeEditor();\n    var self = this,\n        options = {textMode: 'markdown', content: this.savedMarkup},\n        e = this.editor = new lively.morphic.CodeEditor(this.innerBounds(), options);\n    e.applyStyle({resizeWidth: true, resizeHeight: true});\n    e.accessibleInInactiveWindow = true;\n    var changeHandler = e.markdownMirror = function(evt) { self.savedMarkup = e.textString; }\n    e.withAceDo(function(ed) {\n        ed.session.addEventListener('change', changeHandler); });\n    this.addMorph(e);\n}","funcProperties":{"__isSmartRef__":true,"id":87},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"86":{"this":{"__isSmartRef__":true,"id":0}},"87":{"timestamp":{"__isSmartRef__":true,"id":88},"user":"robertkrahn","tags":[]},"88":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:25:12 GMT-0700 (PDT)"},"89":{"varMapping":{"__isSmartRef__":true,"id":90},"source":"function prepareForNewRenderContext(ctx) {\n    $super(ctx);\n    (function() {\n        // this.showMarkdown();\n    }).bind(this).delay(0);\n}","funcProperties":{"__isSmartRef__":true,"id":95},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"90":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":91}},"91":{"$super":{"__isSmartRef__":true,"id":92}},"92":{"varMapping":{"__isSmartRef__":true,"id":93},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":94},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"93":{"obj":{"__isSmartRef__":true,"id":0},"name":"prepareForNewRenderContext"},"94":{},"95":{"timestamp":{"__isSmartRef__":true,"id":96},"user":"robertkrahn","tags":[]},"96":{"isSerializedDate":true,"string":"Sat Mar 16 2013 04:35:16 GMT-0700 (PDT)"},"isSimplifiedRegistry":true}}