Hi Marius and everyone,

Here's an idea of a specification for macro handling in the new  
wysiwyg editor:

* Macros are rendered when displayed in the editor
* There's an outline so that the user can see what content corresponds  
to a macro
* When the cursor is inside a macro the background color is changed
* Clicking on Edit Macro to edit the selected macro
* There's a background thread running that re-renders the page (and  
thus the macro) every N seconds. We need this since the macro content  
depends on other content (for example the TOC macro will depend on  
sections, the velocity macro will depend on values set in other  
velocity macros, etc). We should also have a way to let the user  
refresh the rendering manually.
** Note that since there are both inline and block macros we also need  
to refresh the rendering for that reason. For ex, if you put a  
velocity macro inside a list item and then you remove the list item  
the renderer result of the macro will be different (in the second case  
an extra paragraph will be added).
* We should also have a button to switch between rendering macros and  
not rendering macros. For example when a page is including another  
page with some large content the user might want to disable macro  
rendering to focus only on the content of the current page. The  
default should be to render macros.

WDYT?

Thanks
-Vincent

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to