[Users] Somebody care to update the Zimbra Build-In Emoji's?
Barry de Graaff
info at barrydegraaff.tk
Fri Dec 9 16:07:39 CET 2016
Attached is the readme that sits in the TinyMCE folder in the Zimbra source, have fun!
From: "Jorge de la Cruz" <jdelacruz at zetalliance.org>
To: "Barry de Graaff" <info at barrydegraaff.tk>
Cc: "Guy CARRÉ" <guycarre at free.fr>, users at lists.zetalliance.org
Sent: Friday, 9 December, 2016 16:04:07
Subject: Re: [Users] Somebody care to update the Zimbra Build-In Emoji's?
I'm not sure is that one,
I'm adding the new icons here:
/opt/zimbra/jetty-distribution-9.3.5.v20151012/webapps/zimbra/js/ajax/3rdparty/tinymce/plugins/emoticons/img/
called like smiley-XXXXX.png
Then I've tried add them here /opt/zimbra/jetty/webapps/zimbra/js/ajax/3rdparty/tinymce/plugins/zemoticons/data.js in base64 like this:
"test": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAiRJREFUOBHdUc1rE1EQn3n7NqlGqyV6ULwKiqcWC4oivZVU02pjY2rFg6fag3gTD2K96sFTKSroxZo2cQ/GpqEiErR4Ew8SeshZRVBsgrZrsjvjvI1bYtV/wAe7+2Z+HzOzg/CPkxwd3aE8b5eBSeuPT7PZz3+j4sbkiVRqr8LIdQZOAHNHgCO6CFgibtyYd5xqu0a1BwPD6WOWirwW1wPAdNEn6EZFPQQ8jgj7DGY47Zp1g8FMZrdWKsfEL2pboocNydbqNrN1xwI4SK43wkzPDcdwQ5N1A2jyZWm50Vytnd9aX72GqG755C8g8BQw9HJE3fXXvk0wgxtwfzkEBn2Tk5oAhoh5GqKdewBhQkQn553cVOHxXL7+5dMAE1wqFotfAfi+4RqN8QheOyuVmAsYB4VvbFRHGahacGbfhm2Wy2VX7ssmZsZ3CiGulyoxCWvhCL4EvqCbmWhF2twm8R8bkpxJbjLcri7hywkM8vn8d4FkPTjUoemZISVPZ662+ADJ4TOHkqfSV0ws6+2Xp9rSBIbGB2AwlT4HiA88j3q1whigykq5D9LViuR7pLN7sqEnSltLsuILBSf30OjCEeB9fPscES/Ytr3IMqhFP7oFvinXWR9VAiwuWbYuEEHJcI3YnN/mTIyNdUYa/rSkR2QjL6XqK0TpGvGIQuyTf+M0o2q8NDNTb8k3GITJ46l0v4V4VgT7gyoIyz7zo6KTWww5/9H3J6AZ6hqzSgKBAAAAAElFTkSuQmCC"
Which it looks like should work, but it isn't, I've also tried to edit the /opt/zimbra/jetty/webapps/zimbra/js/ajax/3rdparty/tinymce/plugins/emoticons/plugin.js and the /opt/zimbra/jetty/webapps/zimbra/js/ajax/3rdparty/tinymce/plugins/emoticons/plugin_min.js
Everything seems to be okay, I even delete some of the original images, but the result is the same, which make me wonder, if this is not compiled or so somehow, as any change is making any effect.
Best regards
From: "Barry de Graaff" <info at barrydegraaff.tk>
To: "Jorge de la Cruz" <jdelacruz at zetalliance.org>
Cc: "Guy CARRÉ" <guycarre at free.fr>, users at lists.zetalliance.org
Sent: Friday, December 9, 2016 2:52:03 PM
Subject: Re: [Users] Somebody care to update the Zimbra Build-In Emoji's?
I think with compile you mean creating the zgz file?
In that case, maybe similar to:
https://github.com/Zimbra-Community/zimbra-patches#use-name-from-email-header-instead-of-contacts-and-emailed-contacts-httpsbugzillazimbracomshow_bugcgiid102087
----- Original Message -----
From: "Jorge de la Cruz" <jdelacruz at zetalliance.org>
To: "Guy CARRÉ" <guycarre at free.fr>
Cc: "Barry de Graaff" <info at barrydegraaff.tk>, users at lists.zetalliance.org
Sent: Friday, 9 December, 2016 15:46:35
Subject: Re: [Users] Somebody care to update the Zimbra Build-In Emoji's?
I tried to work on it for couple of hours today.
It seems I need to recompile the TinyMCE in order to apply the changes, does someone know how?
Best regards
----- Original Message -----
From: "Guy CARRÉ" <guycarre at free.fr>
To: "Barry de Graaff" <info at barrydegraaff.tk>
Cc: "Jorge de la Cruz" <jdelacruz at zimbra.com>, users at lists.zetalliance.org
Sent: Thursday, December 8, 2016 6:45:22 PM
Subject: Re: [Users] Somebody care to update the Zimbra Build-In Emoji's?
we should rename the zimlet as Vintage Emoji ;)
----- Mail original -----
De: "Barry de Graaff" <info at barrydegraaff.tk>
À: users at lists.zetalliance.org, "Jorge de la Cruz" <jdelacruz at zimbra.com>
Envoyé: Jeudi 8 Décembre 2016 18:24:03
Objet: [Users] Somebody care to update the Zimbra Build-In Emoji's?
Hello Jorge, and others,
I apologize in advance for this request,
Can you or anyone update the build-in emoji's in Zimbra TinyMCE port?
I personally don't like them much as they are so 1995:
If someone could patch them, it would be much appreciated!
Kind regards,
Barry de Graaff
Zeta Alliance Founder
www.zetalliance.org
+31 617 220 227
Skype: barrydegraaff.tk
Fingerprint: 97f4694a1d9aedad012533db725ddd156d36a2d0
--
___________________________________
/ \
/-------------------------------------\
BQ_BEGIN
Guy CARRÉ |
************* |
PostMaster - WikiMaster - SysAdmin |
|
"Free Your Mind. Think Open Source" |
april.org |
|
BQ_END
|_____________________________________|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zetalliance.org/pipermail/users_lists.zetalliance.org/attachments/20161209/8087c9ae/attachment.html>
-------------- next part --------------
=============================================
BUILDING AND CUSTOMIZING TINYMCE FOR ZIMBRA
=============================================
We have a Makefile which automatically fetches TinyMCE, applies our patches to
it and builds it.
In order to build TinyMCE, you'll need a few extra packages beyond the regular
requirements of Zimbra:
- node (aka. nodejs or node-js)
- npm (occassionally included with node)
- curl
- GNU Make
- diff & patch
See the Makefile itself for further documentation on available targets. I'll
describe a few typical tasks below.
Please note that the final step prior to posting a patch to
ReviewBoard and/or submitting a change to Perforce should be:
$ make reset
This blows away the TinyMCE sources, regenerates, patches and rebuilds
them, and finally reconciles the modifications with Perforce,
preventing any changes beyond our patches.
PATCHING TINYMCE
----------------
The process for modifying TinyMCE constists of two phases: first, you write and
test the change, and then you create the patch.
When making the change, take care to edit the original source files rather than
any compiled or inline version. Then, build TinyMCE and deploy Zimbra as usual:
$ make
$ ant sync -s
When your change is good, generate a patch and move it into the 'patches'
directory:
$ make diff
$ cp work.diff patches/01-bug_1337.diff
Make sure to use sequential numbering for the start of the patch, and that the
number is greater than the other existing patches. Otherwise, the patches may
fail to apply.
UPDATING A PATCH
----------------
If you need to update a patch, simply delete while it's applied and regerate:
$ rm patches/01-bug_1337.diff
<HACK HACK HACK>
$ make diff
$ cp work.diff patches/01-bug_1337.diff
This approach is preferable to adding multiple incremental patches, as it
allows easily removing the change later on. The incremental history is
available in Perforce.
UPGRADING TINYMCE
-----------------
The 'reset' target fetches, builds and applies our patches to TinyMCE. The
TinyMCE version is normally extracted from 'build.xml', but can also be
specified on the command line:
$ make TINYMCE_VERS=4.x.y reset
This will be useful for testing that all patches apply to the upgraded version,
and that the upgraded version works as expected.
When they do, rename the old version to the new, update 'tinymce.version' in
'build.xml', and do a simple reset.
$ make reset
Take care to ensure that Perforce tracks added and removed files correctly.
More information about the Users
mailing list