Page 1 of 1

Where is my Emoticon Chooser?

Posted: Sat Mar 05, 2005 6:12 am
by vincem
Hi,

I just installed the emoticonChooser plugin (via Spartacus and v.08-B1) but although the administration page Manage Plugins shows it installed, I don't actually see it in the New Entry page.

What is it supposed to look like, is it a popup or does it add itself on or near the WYSIWYG editor?

Any suggestions on what I might be doing wrong?

--

Great job with version 0.8, by the way! The editor's cut & paste finally works with Firefox.

Re: Where is my Emoticon Chooser?

Posted: Sat Mar 05, 2005 1:18 pm
by garvinhicking
Hi!

This is a combination of two bugs: First, the plugin did not get embedded when WYSIWYG editor is active.

Second, I cannot get the WYSIWYG editor to perform the Javascript functions of the emoticon chooser. It only works if you previously toggle the WYSWYG editor to HTML source mode (via the "<>" button)

I will commit the fix to 0.8-beta2, but you will not really be able to use the chooser with WYSIWYG mode, I am sorry. I currently have no idea how this can be done.

Regards,
Garvin

Thanks for the reply!

Posted: Sat Mar 05, 2005 2:40 pm
by vincem
All right, no big deal any way. I can live without it, it'll just put a little more strain on my coffee-abused memory... ;-)

Thanks Garvin!

Re: Where is my Emoticon Chooser?

Posted: Sat Mar 05, 2005 6:48 pm
by reion
garvinhicking wrote:I currently have no idea how this can be done.
i have something in mind ...

there is a function, where you generate all the buttons for the htmleditor.
in: inlcude/function_entries.inc.php

Code: Select all

        config<?php echo $jsname; ?>.toolbar = [
            [ "fontname", "space",
              "fontsize", "space",
              "formatblock", "space",
              "bold", "italic", "underline", "strikethrough", "separator",
              "subscript", "superscript"],

            [ "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
              "lefttoright", "righttoleft", "separator",
              "orderedlist", "unorderedlist", "outdent", "indent", "separator",
              "forecolor", "hilitecolor", "separator",
              "inserthorizontalrule", "createlink", "insertimage", "image_selector", "inserttable", "htmlmode"],

            [ "cite", "cite-source", "separator",
              "copy", "cut", "paste", "space", "undo", "redo" ]
        ];
why don't you make another depth for the smilies only?!
for example, use a foreach (smiley-array) to give every one to the function. before this, you have to generate the buttons - but you can handle that with the foreach too ... like this:

Code: Select all

        config<?php echo $jsname; ?>.registerButton(
	        "cite-source", //button ID
	        "Quelle", //tooltip
	        "htmlarea/images/source.gif", //image
	        false, //textMode
	        function(editor, id) { editor.surroundHTML('<cite-source>', '</cite-source>'); }
		);
i think you can see the point ...

the only problem is, that images bigger than the button size aren't displayed correctly ... but i think, that this won't matter (a lot) ...

regards
reion

Re: Where is my Emoticon Chooser?

Posted: Sat Mar 05, 2005 10:00 pm
by garvinhicking
You seem to have a good clue to this. How would you like to look more into this and propose a patch? That would be great! :)

I'm not really much into HTMLArea...


Regards,
Garvin

Re: Where is my Emoticon Chooser?

Posted: Sun Mar 06, 2005 2:32 am
by reion
garvinhicking wrote:You seem to have a good clue to this. How would you like to look more into this and propose a patch? That would be great! :)
i can make it ... BUT ... i'm not into serendipity ... so i have to know the emoticon array ;)
garvinhicking wrote:I'm not really much into HTMLArea...
me too (yaaa ... a little bit - but i can go further) ... but i managed it to create my own buttons

btw ... a suggestion for the next releases or even for 0.8 ... there should be an option to create buttons (for wysiwyg and html) on your own ... simple inputs with write this to a table and the buttons (additional) are created from this table ;)


mail me for further contact ... a_niedermair@aon.at
or contact me via icq (79108124), msn (a_niedermair@aon.at), yahoo (an.niedi) or aim (inhertiaREION) ...