plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

[WIP] form layout is error prone and intimidating (dnd fields) #750

Open djay opened 8 years ago

djay commented 8 years ago

User problem

Currently layout is done with markup and character styles. Less has the following downsides

Use tinymce's noneditable mode and inset representative html for fields, actions and subforms. html doesn't have to be perfect but should try to show what the final result will look like. Labels, displayfields, hidewhens and caches can also use noneditable to take up less space and be less error prone.

Here is an example of WIP for fields plominovisual

TODO:

djay commented 8 years ago

@ebrehault hi. Is there any progress of the IDE work? One thing thats unintuitive currently is that you have to type the id first and select it before adding a new field. This is obviously something that will change with the IDE, but if its going to take some time I can probably do a quick fix here.

ebrehault commented 8 years ago

I fixed few bugs in the ide branch before I left to vacations, I guess I need to review it one more time, and then I will release it.

djay commented 8 years ago

This will also fix - https://github.com/plomino/Plomino/issues/626

djay commented 8 years ago

@displacedaussie @ebrehault The current inserting into tinymce is here https://github.com/plomino/Plomino/blob/master/ide/app/editors/tiny-mce.component.ts#L82.

It currently has a bug that it doesn't insert at the cursor. Something like this might fix it - http://blog.squadedit.com/tinymce-and-cursor-position.

Since angular is in typescript we either need to rewrite the code that inserts field etc, or turn it into a function that can be called from TS, or, since we have to do an ajax call to get the widget anyway, we could do it all serverside.