- Posts: 663
COMMUNITY FORUM
Joomgallery - plugin and insert images editor button
- BBC
-
Topic Author
- Offline
- Platinum Member
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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
Tried to disable all K2 plugins, but same.
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
But....i don´t have this one.
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
-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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
Uncaught exception: TypeError: Cannot convert 'el' to object
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
I beleive it is some conflict with K2 modalbox popup.
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
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.
- Dave Logic
-
- Offline
- New Member
- Posts: 15
Please Log in or Create an account to join the conversation.
- BBC
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
Or just one ?
Please Log in or Create an account to join the conversation.
- Dave Logic
-
- Offline
- New Member
- Posts: 15
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
-
Topic Author
- Offline
- Platinum Member
- Posts: 663
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.