Open djay opened 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.
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.
This will also fix - https://github.com/plomino/Plomino/issues/626
@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.
User problem
Currently layout is done with markup and character styles. Less has the following downsides
Options
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
TODO: