Sha256: 8eac3227f02f7cd6c42bb9d375e518024ceb461de08dc487e2eec08c5c00f17f
Contents?: true
Size: 1.29 KB
Versions: 11
Compression:
Stored size: 1.29 KB
Contents
var WhowishWordCommonCreator = WhowishWordCreator.extend({ identity: function() { throw 'identity() is not implemented' }, getContent: function() { throw 'getContent() is not implemented' }, setContent: function() { throw 'setContent() is not implemented' }, instantiateAndGetContentHandler: function() { throw 'instantiateAndGetContentHandler() is not implemented' }, makeEditIcon: function(){ var editIcon = document.createElement('span'); $w(editIcon).addClass('whowishWordEditIcon'); $w(editIcon).attr('id', this.element.id + whowishWordVariables.separator + this.identity()); $w(editIcon).attr('title', this.identity()); if (this.identity() == "text") { $w(editIcon).addClass('whowishWordTextIcon'); } var whowishWordIdPackage = whowishWordHelper.extractWhowishWordIdFromText(this.getContent()); var idPackage = whowishWordHelper.parseWhowishWordIdPackage(whowishWordIdPackage); customData = {}; customData.contentHandler = this.instantiateAndGetContentHandler(); customData.id = idPackage.id; customData.variables = idPackage.variables; whowishWordStorage[editIcon.id] = customData; this.addEditIcon(editIcon); }, sanitize: function(){ this.setContent(whowishWordHelper.sanitize(this.getContent())); }, });
Version data entries
11 entries across 11 versions & 1 rubygems