Geoff Longman wrote:
To use, drag a component onto the template. On releasing the mouse button you'd get a popup that asks you insome elegant way.. 
i don't even think we need to go that far, and complicate things with DnD.. simply click, and it inserts the component at the cursor location - if there was a selection, then it surrounds it...

also, perhaps in another section you might want to list the components defined in the Page, but not used in the HTML yet, so if the definitions are created first, inserting them into the template become trivial, you just select the names from the component palette...
    insert as "<span jwcid="name"/> at the drop point (if its outside a tag)
    insert as "<span jwcid = "name"></span> at drop point (if its outside a tag)
this could be automatically determined if the component doesnt allow body. 
The contained component would be automagically created in the spec.
one thing about this automated creation - i think spindle should automatically create the required bindings for the component, few less clicks again...

actually, editing the bindings could also be somewhat friendlier... i mean something like (ascii art follows, but imagine a tapestry style palette component, with two arrows :)

Insert component:

(parameters)                    (used params)     (values)
                       -->         
value         fill in value here
format      
class                  <--
raw


somewhat less clicking around here too...

best regards,
    viktor

Reply via email to