Sha256: bdbaab3d86d6495ff477287cfeedc75b4e26a61005651b05f819d7ff8427f9a2
Contents?: true
Size: 829 Bytes
Versions: 14
Compression:
Stored size: 829 Bytes
Contents
/* * Aloha Editor * Author & Copyright (c) 2010 Gentics Software GmbH * aloha-sales@gentics.com * Licensed unter the terms of http://www.aloha-editor.com/license.html */ if(typeof EXAMPLE=="undefined"||!EXAMPLE){var EXAMPLE={}}EXAMPLE.DummySavePlugin=new GENTICS.Aloha.Plugin("com.example.aloha.DummySave");EXAMPLE.DummySavePlugin.languages=["en","de","fi","fr","it"];EXAMPLE.DummySavePlugin.init=function(){var that=this;var saveButton=new GENTICS.Aloha.ui.Button({label:this.i18n("save"),onclick:function(){that.save()}});GENTICS.Aloha.Ribbon.addButton(saveButton)};EXAMPLE.DummySavePlugin.save=function(){var content="";jQuery.each(GENTICS.Aloha.editables,function(index,editable){content=content+"Editable ID: "+editable.getId()+"\nHTML code: "+editable.getContents()+"\n\n"});alert(this.i18n("saveMessage")+"\n\n"+content)};
Version data entries
14 entries across 14 versions & 1 rubygems