Keyword

Joomgallery - plugin and insert images editor button

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93451 by BBC
Have problem with some JS conflict in admin back panel, when i want to insert Joomgallery images in Items.

It works fine in Joomla Articles, but not in K2 Items.

Tested with default editor too.

Doe´s anyone had this problem before ?

 

Firefox shows error message:

Error: tip.setStyle is not a functionSource File: www.xxxxx.xx/media/system/js/mootools.js Line: 92

 

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93452 by BBC
K2 has its own k2mootools.js in backend.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93453 by BBC
I see...tooltips in K2 Items not work.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93454 by BBC
It is definitely K2 k2.mootools.js problem with Joomla mootools.js. Not Joomgallery problem.

 

Tried to disable all K2 plugins, but same.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93455 by BBC
Or maybe some other K2 JS file and Joomla mootools.js.

 

Anyway Firefox doesn´t show this error in Joomla Articles. And tooltips work there, btw...

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93456 by BBC
I see that some people fix mootools.js conflicts by chosing another option in Simple Image Gallery PRO plugin.

But....i don´t have this one.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93457 by BBC
There is nothing in k2.mootool.js in administrator/components/com_k2/js/k2.mootools.js

 

Just Toogler and File browser.

So it has to be some other K2 JS file.

 

Autocompleter, observer or nicEdit.js.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93458 by BBC
Difference between working Joomgallery in Joomla Articles and K2 Items are:

 

-com_k2/lib/simpletabs_1.3.js

-com_k2/js/k2.mootools.js

-com_k2/lib/Autocompleter.js

-com_k2/lib/observer.js

-com_k2/lib/nicEdit.js

-media/system/js/tabs.js

 

 

And some other JS functions, as:

-Ajax for extrafields editor

-functions for Jcomments (but it was never problems with them)

-function addAttachment

 

 

 

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93459 by BBC
Joomla last, 1.5.22. K2 last. Tested even SVN 2.5.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93460 by BBC
This is part responsible for Joomgallery button to work. It is in JCE, but tested with others editors.

And JCE and Joomgallery works OK in Joomla Articles, so it is some conflict with K2 scripts in admin panel.

Maybe good to narrow problem.

 

"Ell is null" is error.

 

/**     * Insert content into the editor. This function is provided for editor-xtd buttons and includes methods for inserting into textareas     * @param {String} el The editor id     * @param {String} v The text to insert     */    insert: function(el, v) {        if (typeof el == 'string') {            el = document.getElementById(el);        }                if (/mceEditor/.test(el.className)) {            if (tinymce.isIE) {                if (window.parent.tinymce) {                    var ed = window.parent.tinyMCE.get(el.id);                                        if (ed) {                        if (this._bookmark[ed.id]) {                            ed.selection.moveToBookmark(this._bookmark[ed.id]);                        }                    }                }            }            tinyMCE.execInstanceCommand(el.id, 'mceInsertContent', false, v, true);        } else {            // IE            if (document.selection) {                el.focus();                s = document.selection.createRange();                s.text = v;                // Mozilla / Netscape            } else if (el.selectionStart || el.selectionStart == '0') {                var startPos = el.selectionStart;                var endPos = el.selectionEnd;                el.value = el.value.substring(0, startPos) + v + el.value.substring(endPos, el.value.length);            // Other            } else {                el.value += v;            }        }    }};

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93461 by BBC
Opera error:

 

Uncaught exception: TypeError: Cannot convert 'el' to object

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93462 by BBC
It wont work in Frontend too.

I beleive it is some conflict with K2 modalbox popup.

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93463 by BBC
At least some progress, after a lot of hours.

 

If i enable "Use one editor window for introtext & fulltext" (only one window), then Joomgallery plugin button works OK.

 

Is there anyone of developers that could help a little bit with this ? Thanks...

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93464 by BBC
There is no hope for this. Problem is with Joomgallery. Editor plugin wont work anywhere outside native Joomla articles.

Strange that it works even with one editor window.

And to wait some answer at Joomgallery forum is hopeless.

 

I bought subscription for Ignite gallery. Insert plugin works everywhere.

 

So shame, because Joomgallery is almost perfect.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #93465 by Dave Logic
I have this working fine on my site using default editor.....

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93466 by BBC
Do you have two windows in Item, one for Intro, one for Detail ?

Or just one ?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #93467 by Dave Logic
I have one for both...

 

D
BBC said:

Do you have two windows in Item, one for Intro, one for Detail ?

Or just one ?

Please Log in or Create an account to join the conversation.

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 2 months ago #93468 by BBC
Yes....i know. So works it for me too.

It is obviously something with Joomgallery plugin. Because PhocaGallery plugin and Ignite Gallery plugin work both way.

I noticed Joomgallery wont insert images in custom HTML modules too.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum