| @@ -418,9 +418,17 @@ | ||
| 418 | 418 | if(tEle.attr('pagelayer-default_active') && !pagelayer_empty(pl_id)){ |
| 419 | 419 | default_active = pl_id; |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | - jEle.children('.pagelayer-tabs-holder').append('<span tab-id="'+pl_id+'" id="'+id+'" class="pagelayer-tablinks" onclick="'+func+'"> <i class="'+icon+'"></i> <span>'+title+'</span></span>'); | |
| 422 | + var editable = ''; | |
| 423 | + if(!pagelayer_empty(pagelayer_is_live)){ | |
| 424 | + editable += ' pagelayer-ref-id="'+pl_id+'"'; | |
| 425 | + editable += ' pagelayer-editable="title"'; | |
| 426 | + editable += ' contenteditable="true"'; | |
| 427 | + } | |
| 428 | + | |
| 429 | + jEle.children('.pagelayer-tabs-holder').append('<span tab-id="' + pl_id + '" id="' + id + '" class="pagelayer-tablinks" onclick="' + func + '"> <i class="' + icon + '"></i> <span class="pl-tab-title" ' + editable + '>'+title+'</span></span>'); | |
| 430 | + | |
| 423 | 431 | }); |
| 424 | 432 | |
| 425 | 433 | // Default Active by Hash |
| 426 | 434 | var hash = location.hash.slice(1); |