maschek / imgmap

Javascript based imagemap editor
https://www.maschek.hu/imagemap/
GNU General Public License v2.0
59 stars 33 forks source link

Popup Gives JS Error #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Insert an image
2. Click the image map button
3.

What is the expected output? What do you see instead?
I expected that the image would be shown in the UI, but all I can see is
the UI.
The Firebug plug-in for Firefox gives med these messages:

(Translated from norwegian)
1. Element refered to by ID/NAME in the global field. Use the W3C standard
doucment.getElementById instead.

2. uncaught exception: [Exception... "Cannot convert WrappedNative to
function" nsresult: "0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)"
location: "JS frame ::
http://cm-84.208.89.232.getinternet.no/~thomasandersen/tinymce/jscripts/tiny_mce
/plugins/imgmap/jscripts/functions.js
:: init :: line 27" data: no]

What version of the product are you using? On what browser/operating system?

imgmap2.0 beta6r80
TinyMCE 3.0.4.1
Firefox 2.0.0.12
Mac OS X 10.5.2

Please provide any additional information below.

Original issue reported on code.google.com by thomasan...@gmail.com on 13 Mar 2008 at 1:25

GoogleCodeExporter commented 9 years ago
Update 
File reference for message 1
function.js Line 15

Original comment by thomasan...@gmail.com on 13 Mar 2008 at 1:31

GoogleCodeExporter commented 9 years ago
According to this:

http://groups.google.pt/group/comp.lang.javascript/browse_thread/thread/dce5ede2
688ca7c0/783e46d2e17806eb?#783e46d2e17806eb

There is probably a clash with the name 'imgmap'.
Can you post here your tinyMCE.init configuration?
Also you can rename the class as for example class_imgmap and use it in the new
statement accordingly, like myimgap = new class_imgmap();

Original comment by adam.mas...@gmail.com on 13 Mar 2008 at 2:35

GoogleCodeExporter commented 9 years ago
Hi Adam

Her is the init config 
I will try your suggestion

    tinyMCE.init({
        // General options
        mode : "textareas",
        theme : "advanced",
        plugins :
"cmsimage,imgmap,image,safari,pagebreak,style,layer,table,save,advhr,advimage,ad
vlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,p
rint,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbrea
king,xhtmlxtras,template",

        // Theme options
        theme_advanced_buttons1 :
"cmsimage,imgmap,save,newdocument,|,bold,italic,underline,strikethrough,|,justif
yleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect
,fontsizeselect",
        theme_advanced_buttons2 :
"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent
,indent,blockquote,|,undo,redo,|,link,unlink,anchor,cleanup,help,code,|,insertda
te,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 :
"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,
media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 :
"insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,
del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        extended_valid_elements :
"img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmous
eover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]",

        // Example content CSS (should be your site CSS)
        content_css : "css/content.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "lists/template_list.js",
        external_link_list_url : "lists/link_list.js",
        external_image_list_url : "lists/image_list.js",
        media_external_list_url : "lists/media_list.js",

        // Replace values for the template plugin
        template_replace_values : {
            username : "Some User",
            staffid : "991234"
        }
    });

Original comment by thomasan...@gmail.com on 13 Mar 2008 at 5:41

GoogleCodeExporter commented 9 years ago
Hi again I found the error.

the imgmap.js file was not included.
I took the file from your package and placed it in the plugin js folder.

Sorry for false alarms.

The language file needs som work though.

Original comment by thomasan...@gmail.com on 13 Mar 2008 at 6:12

GoogleCodeExporter commented 9 years ago
What you mean it was not included? It was not in the jscripts dir?
Yep, i have an other report for language, will check it in a moment.

Original comment by adam.mas...@gmail.com on 13 Mar 2008 at 10:19

GoogleCodeExporter commented 9 years ago
Ah the other report is you, too. Ok, i will reply there.

Original comment by adam.mas...@gmail.com on 13 Mar 2008 at 10:33

GoogleCodeExporter commented 9 years ago
ok, this issue came from incorrect installation of the plugin.
i updated the wiki about the plugin installation:
http://code.google.com/p/imgmap/wiki/TinyMCE_setup

i close this issue as invalid

Original comment by adam.mas...@gmail.com on 9 Apr 2008 at 11:36