test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • guimplenchik Friend
    #156453

    Hello,

    I couldn’t find the solution on this forum, maybe someone had this problem before.
    I am running the latest Joomla version (1.5.21), VM 1.1.5, JCE Editor (default editor) and JA T3 v2 blank template.

    The problem is that JA Plugin Button doesn’t work properly when I try to use some predefined styles in Virtuemart Product Add/Edit section. I can see the JA button itself, it shows me the available styles, but when I click on some style it gives an JS Error: el is null

    Source File: http://xxxxxxxxxxxxx/plugins/editors/jce/libraries/js/editor.js?version=1574
    Line: 64

    which is:

    /**
    * 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) {
    var bm, ed;
    if (typeof el == 'string') {
    el = document.getElementById(el);
    }
    if (/mceEditor/.test(el.className)) {
    ed = tinyMCE.get(el.id);
    ed.execCommand('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;
    }
    }
    }

    Line 63 is:

    if (/mceEditor/.test(el.className)) {

    VM has a “Enable content mambots / plugins in descriptions?” check box selected. JA Button works OK in Joomla articles. For some reason, plugin uses the mceEditor… Why?

    Any workaround on this?

    Saguaros Moderator
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum