Keyword

Joomgallery - plugin and insert images editor button

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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
13 years 7 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.


Powered by Kunena Forum