Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are a few changes made to TinyMCE 3 to integrate it into Contenido's backend.

The plugin advlink has been modified.

Function getAnchorListHTML in file ./contenido/external/wysiwyg/tinymce3/jscripts/tiny_mce/plugins/advlink/js/advlink.js hase been changed. The anchor value has now the form front_content.php?idart=112#anchor_name instead of #anchor_name.

Note, that for V3.x it is in js/advlink.js, instead of jscripts/functions.js!

Code Block
   function getAnchorListHTML(id, target) {
    var inst = tinyMCEPopup.editor;
    var nodes = inst.dom.select('a.mceItemAnchor,img.mceItemAnchor'), name, i;
    var html = "";
    html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" o2nfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
    html += 'this.options[this.selectedIndex].value;">';
    html += '<option value="">---</option>';
    for (i=0; i<nodes.length; i++) {
        // CONTENIDO MODIFICATION 24.10.2006 Willi Man
        if ((name = inst.dom.getAttrib(nodes[i], "name")) != "")
            html += '<option value="' + tinyMCE.settings['article_url_suffix'] + '#' + name + '">' + name + '</option>';
    }
    html += '</select>';
    return html;
  }

...