Hello everybody.
While I am writing my first RC plugin I have two questions that where
not answered by the plugin documentation, and I also could not find
examples in some plugins I analyzed:
1) It would be helpful if I could call "layout_composeview()" defined in
ui.js from my plugin JS code. On a user action I would like to modify
the window arrangement slightly (remove the attachment section in
compose view) and therefor let the view get rendered again. But I did
not find a way on how to call it from my plugin code.
2) Is there an event I overlooked that is fired when a new message is
created? I would like to hide the attachment section on the composer
view by default, so same scenario as above: How can I detect in the JS
code in my plugin that a new message shall be composed, and how can I
call "layout_composeview()" from the plugin?
A customer has several employees working on low screen resolution, but
only sending mails with attachments very rarely. So he would like to
have the attachment section hidden by default, 260px more space for
e-mail composing, and an option in the composeoptions to display the
attachment section if really needed.
Any help is really appreciated!
Thanks in advance,
Daniel