filemanager button in elrte 1.3 missing
Added by johan remmerie 4 months ago
Hi
I have successfully integrated elrte and a standalone elfinder (2.0), and tried to add elfinder to the filemanager button in elrte.
However, that button is not visible in the toolbar, nor in the upload image window.
Anyone familiar with that 'problem' ?
Has nothing to do with elfinder itself, the button simply doesn't appear
Further, on Firefox, I get a message:
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]
[Break On This Error]
this.doc.execCommand('styleWithCSS', false, this.options.styleWithCSS);
Code (when trying to combine elrte 1.3 and elfinder 1.2) according to wiki:
$().ready(function() {
var opts = {
absoluteURLs: false,
cssClass : 'el-rte',
lang : 'en',
height : 420,
toolbar : 'complete',
cssfiles : ['../scripts/elrte-1.3/css/elrte-inner.css'],
fmOpen : function(callback) {
$('<div id="myelfinder" />').elfinder({
url : '../scripts/elfinder-1.2/connectors/php/connector.php',
lang : 'en',
dialog : { width : 900, modal : true, title : 'elFinder - file manager for web' },
closeOnEditorCallback : true,
editorCallback : callback
})
}
}
$('.editable').elrte(opts);
})
Thnx
Replies (3)
RE: filemanager button in elrte 1.3 missing
-
Added by johan remmerie 4 months ago
On a final test, I found out that the problem is that I linked elrte to a class (.editable), of which there are a number of members on the page.
As soon as there is only one member (selected by id or class), everything works fine.
A workaround would be to open only one instance of elrte, but then I should be able to define the content that gets into it upon opening.
Any ideas or a solution to the multiple instances ?
grtz
Johan
RE: filemanager button in elrte 1.3 missing
-
Added by johan remmerie 4 months ago
Sorry, incorrect info. Only working with an id-selector
and the error on line 1251 of elrte.full remains there in Firefox, however without further effect.
Can someone confirm I can't bind elrte with file manager to a class ? Looks strange to me since it's only the filemanager button/functionality that's missing ?!
RE: filemanager button in elrte 1.3 missing
-
Added by Troex Nevelin 4 months ago
This is fixed in latest git version
(1-3/3)