afterlogic / webmail-lite

AfterLogic WebMail Lite PHP. Fast and easy-to-use webmail front-end for your existing IMAP mail server, Plesk or cPanel.
https://afterlogic.org/webmail-lite
GNU Affero General Public License v3.0
444 stars 120 forks source link

Enable Align when send email #63

Closed abdelrahmanahmed closed 7 years ago

abdelrahmanahmed commented 7 years ago

How to enable align text when sending email ? like in this image image

afterlogic-support commented 7 years ago

WebMail Lite doesn't currently have that. If you believe this feature would be a popular demand, you can post a vote at http://afterlogic.uservoice.com/ - and if the feature gets substantial number of votes we'll consider implementing it in the future versions.

abdelrahmanahmed commented 7 years ago

ok thats wired , because i found that u were already implemented it .

function () { oCrea.alignLeft(); }
function () { oCrea.center(); }
function () { oCrea.alignRight(); }
function () { oCrea.justify(); }
afterlogic-support commented 7 years ago

As far as I know it's still in the codebase but the feature was removed in one of the previous versions, there's no easy way to bring that back, not without extensive modification of the skins and templates.

abdelrahmanahmed commented 7 years ago

Well for those who want to bring it back you can just edit in templates/views/Common/HtmlEditorViewModel.html and add

<a href="javascript:void(0);" class="item aleft" data-bind="click: function () { oCrea.alignLeft(); }, customTooltip: 'HTMLEDITOR/ALIGN_LEFT'">
                <span class="icon"></span>
            </a>

and in your css add

.html_editor .toolbar .content .item.aleft .icon {
  background-position: -320px -320px;
}

you may also change the langue from here i18n/English.ini

note : you can find the other aligning methods in static/js/libs.js

I have no idea why you removed it but i appreciate your work @afterlogic-support , you did a great project here.

abdelrahmanahmed commented 7 years ago

@afterlogic-support should i add pull request for this or you don't want this feature to return back?

afterlogic-support commented 7 years ago

I've checked this with our UX dept and they confirm the feature was deliberately removed a while ago. Also, the button images are outdated and would need to be redesigned. So in this specific case, I'm afraid we would turn a request down. Thank you for understanding.