Index: src/webapp/standalone-demos/inline-edit/html/inline-edit.html =================================================================== --- src/webapp/standalone-demos/inline-edit/html/inline-edit.html (revision 0) +++ src/webapp/standalone-demos/inline-edit/html/inline-edit.html (revision 0) @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + CD Database Example + + +
+
Artist
+
+
+ Portishead +
+
+ +
Album
+
Third
+ +
Year
+
2008
+ +
Genre
+
+ Triphop + + + +
+ +
Play Length
+
49 min 13 s
+ +
Label
+
Universal Music
+ +
Review 1
+
+ +
After a hiatus, Portishead is back with their first studio + album in 6 years. Third brings back the familiar and + the new, and none of this is best exemplified than in the track + Machine Gun. It seems that regardless of how Portishead + sounds now, the one thing that has stayed constant is their refusal to be ordinary. +
+
+ + + + +
+
Review 2
+
+ +
...It feels like a staggering transformation and a return to + form that was never lost, an ideal adaptation by a group that many + people didn't know they needed to hear again. +
+
+ + + + +
+
+ + + Index: src/webapp/standalone-demos/inline-edit/js/inline-edit-example.js =================================================================== --- src/webapp/standalone-demos/inline-edit/js/inline-edit-example.js (revision 0) +++ src/webapp/standalone-demos/inline-edit/js/inline-edit-example.js (revision 0) @@ -0,0 +1,49 @@ +/* +Copyright 2008-2009 University of Cambridge +Copyright 2008-2009 University of Toronto +Copyright 2007-2009 University of California, Berkeley + +Licensed under the Educational Community License (ECL), Version 2.0 or the New +BSD license. You may not use this file except in compliance with one these +Licenses. + +You may obtain a copy of the ECL 2.0 License and BSD License at +https://source.fluidproject.org/svn/LICENSE.txt +*/ + +/*global jQuery*/ +/*global fluid*/ + +/*global demo*/ + +var demo = demo || {}; +(function ($, fluid) { + demo.initInlineEdit = function () { + + var inlineEditSetup = function () { + + var makeButtons = function (editor) { + $(".save", editor.container).click(function(){ + editor.finish(); + return false; + }); + + $(".cancel", editor.container).click(function(){ + editor.cancel(); + return false; + }); + }; + + fluid.inlineEdit("#artistName"); + fluid.inlineEdit.dropdown("#albumGenre"); + + var richEditor1 = fluid.inlineEdit.tinyMCE("#cd-review1", {tinyMCE: {width: 1024}}); + makeButtons(richEditor1); + + var richEditor2 = fluid.inlineEdit.FCKEditor("#cd-review2", {FCKEditor: {BasePath: "../../../tests/manual-tests/lib/fckeditor/"}}); + makeButtons(richEditor2); + }; + + inlineEditSetup(); + }; +})(jQuery, fluid); \ No newline at end of file