The admins of my site need to be able to edit/create html text content through Django admin, but rather than offer a standard WYSIWYG editor I'm thinking I'd like to use an interface with which the admins would directly and transparently build the resulting html. I'll try to explain what I have in mind:
My model would consist of a many to one relationship of multiple html segments to one page. Per segment I'd have at least a tag attribute which would be a radiobox choice of (p, h1, h2, ul, ol, dl, li, dt, dd, table, etc.) and a text field for the content. Editing in Django admin would be done per page with tabular inlines for the segments. Depending on the choice of tag JavaScript would be used to instantly show any additional tag-specific attributes. When a list tag or table is chosen nested inlines would need to appear (recursively, but to a limited depth). Basically, I want to give the same amount of control as when writing html by hand, without having admins manually write the tags themselves. Using AJAX to only provide the HTML options that are valid for the given segment would also have the benefit of automatic validation, eliminating the risks of invalid, unclosed or wrongly nested tags. I hope you guys can tell me if something like that already exists (as plugging in someone else's code instead of creating such a framework myself would save me big time). Also, feel free to tell me if you think my goal here is completely misguided... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.