Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hauru

    (@hauru)

    i will.

    i’m just not sure how to deal with .js files that had been minimized and compressed. should i just uncompress and reformat them before editing (well, it would be hard to do it otherwise) and then minimize/gzip them again before submitting? i’ve never used SVN before.

    Thread Starter hauru

    (@hauru)

    a small update to the code so that the “more” tag can be inserted when there’s no root block:

    c.addCommand("WP_More", function () {
      node = c.selection.getNode();
      if(node.nodeName != 'BODY') {
        p = node;
        while(p.parentNode.nodeName != 'BODY')
          p = p.parentNode;
    
        var div = c.dom.create('div', {}, f);
        c.dom.insertAfter(div.firstChild, p);
      }
      else {
        c.execCommand("mceInsertContent", 0, f);
      }
    });
Viewing 2 replies - 1 through 2 (of 2 total)