Bug 30287: (follow-up) Add content wrap matching send time
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 6 Nov 2023 14:00:21 +0000 (14:00 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 19 Dec 2023 12:42:10 +0000 (13:42 +0100)
commita09986ea51eb0104b006fac40d1dc7e2f6cdeeab
tree28b36f5a3284f769e140e9e1df8281ede8ee7a57
parentf83b9ab1ffc7e703804bdc52f30e1994984180b9
Bug 30287: (follow-up) Add content wrap matching send time

This patch adds a new method to the Koha::Notice::Message class to wrap
content in the same way we currently do at email send time. We then
update the notice preview to use this method so we're embedding
NoticeCSS into that iframe. This means the generated preview should now
exactly match how your notice will display in email clients including
any CSS you may have placed within NoticeCSS.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fixed typo in POD of html_content

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Notice/Message.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt