Marius, Thank you for the reply. The "using velocity macros" example doesn't work for me at all: http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#H... I get an error on the line: #wysiwyg_inputProperty($editedDocument $editedProperty $parameters) The "show source text" example also doesn't work for me: http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#H... when I click the "Load Editor" button it just gets stuck displaying the loading animation, but the editor never finishes loading. The "edit in place" example works for me for a single object: http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#H... Unfortunately, I can't seem to figure out how to adapt this code for multiple objects/editors on a single page. I have pages with a large number of objects, and I need to be able to edit any of them on-demand. I'm pretty sure that I need to modify the function below to loop through all objects on the page to add an "edit" button linked to the appropriate <div> ID. // Insert the edit icons and set the action for the cancel buttons. document.observe('xwiki:dom:loaded', function() { showEditIcon('$editedPropertyId'); $$('.cancel').each(function(item) { var fieldId = item.up('form').down('textarea').id; item.observe('click', function(event) { Event.stop(event); onClose(fieldId); }.bindAsEventListener(window)); }); }); I've tried adding a class to each div, and wrapping the showEditIcon call in various loops through that class (using $$ or for/in), but I can't get it to work. I probably just don't know enough javascript to get the syntax correct... Any help would be appreciated, aaron On Fri, Feb 3, 2012 at 1:54 AM, Marius Dumitru Florea <[email protected]> wrote:
Hi Aaron,
On Wed, Feb 1, 2012 at 10:26 PM, Ashtar Communications <[email protected]> wrote:
Does anyone have a working example of loading the WYSIWYG editor on-demand with velocity? Would love to see how you implemented it...I'm having some trouble with porting the code on the xwiki site.
You mean http://extensions.xwiki.org/xwiki/bin/view/Extension/WYSIWYG+Editor+Module#H... doesn't work? Maybe I can help.
Marius
Thanks,
aaron _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users