[xwiki-users] Dynamic object properties loading into WYSIWYG editor
Hi, I'm trying to implement editing of object properties in WYSIWYG editor and there is some questions about it's functionality: 1. On page I have a grid which displays custom objects attached to the it and WYSIWYG editor below the grid, used for editing this objects. By clicking on a row - selected objects property should be loaded into WYSIWYG editor and user can easily modify and save it. So the question is - Is it possible to create single WYSIWYG editor on the page and then dynamically(using JavaScript) load different properties from different objects into it? 2. Can I load some abstract text which is not an object property into WYSIWYG editor? 3. It seems that example provided on the following page doesn't work. http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HLoadondema... May be the reason is that request parameter 'key=fake' is incorrect. BTW, what does this parameter mean? Thank you, Taras
Hi Taras, In order to help you (and give you a detailed answer) I need to know the version of the WYSIWYG editor / XWiki Enterprise you're using. On 10/11/2010 05:26 PM, Taras Fed'kiv wrote:
Hi,
I'm trying to implement editing of object properties in WYSIWYG editor and there is some questions about it's functionality:
1. On page I have a grid which displays custom objects attached to the it and WYSIWYG editor below the grid, used for editing this objects. By clicking on a row - selected objects property should be loaded into WYSIWYG editor and user can easily modify and save it. So the question is - Is it possible to create single WYSIWYG editor on the page and then dynamically(using JavaScript) load different properties from different objects into it?
Yes.
2. Can I load some abstract text which is not an object property into WYSIWYG editor?
Yes.
3. It seems that example provided on the following page doesn't work. http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HLoadondema...
It might depend on the XWiki Enterprise version you are testing it on.
May be the reason is that request parameter 'key=fake' is incorrect. BTW, what does this parameter mean?
The key parameter is used to take the WYSIWYG editor input from the session where it is put by the wysiwyg_editProperty velocity macro (when the edit page is loaded). I recently dropped the need for this parameter. The way the WYSIWYG editor gets its input will be simplified in 2.5 final. Let me know the version of WYSIWYG editor you're using and I'll give you more details about points (1) and (2). Marius
Thank you, Taras
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Marius Dumitru Florea -
Taras Fed'kiv