English 中文(简体)
如何修改形容词?
原标题:How to modify advlink.js?

我认为本来应该容易做的是,现在我花了很多时间。

我只是试图在文件/插图/advlink/js/advlink.js中编辑一些案文。

考虑这一职能:

function getTargetListHTML(elm_id, target_form_element) {
    var targets = tinyMCEPopup.getParam( theme_advanced_link_targets ,   ).split( ; );
    var html =   ;
    html +=  <select id="  + elm_id +  " name="  + elm_id +  " onchange="this.form.  + target_form_element +  .value= ;
    html +=  this.options[this.selectedIndex].value;"> ;
    html +=  <option value="_self">  + tinyMCEPopup.getLang( advlink_dlg.target_same ) +  </option> ;
    html +=  <option value="_blank">  + tinyMCEPopup.getLang( advlink_dlg.target_blank ) +   (_blank)</option> ;
    html +=  <option value="_parent">  + tinyMCEPopup.getLang( advlink_dlg.target_parent ) +   (_parent)</option> ;
    html +=  <option value="_top">  + tinyMCEPopup.getLang( advlink_dlg.target_top ) +   (_top)</option> ;

    for (var i=0; i<targets.length; i++) {
        var key, value;

        if (targets[i] == "")
        continue;

        key = targets[i].split( = )[0];
        value = targets[i].split( = )[1];

       html +=  <option value="  + key +  ">  + value +   (  + key +  )</option> ;
    }

    html +=  </select> ;

    return html;
}

如果我在适当的语文档案中对<代码>advlink_dlg.target_blank作出改动,那么变化似乎显示ok。

But if I try to change the (_blank) on the same line to whatever, eg. (__blank) , nothing happens. Why is that?

最佳回答

你应该做些什么!

我改变了行文(见/plugins/advlink/js/advlink.js)。 页: 1

html +=  <option value="_blank">  + tinyMCEPopup.getLang( advlink_dlg.target_blank ) +   (XXXXXXXXXXXX_blank)</option> ;

并且看一看在选择某些案文后,加推连接-布顿:

“entergraph

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签