Feature #27758 » replace_write_with_edit.patch
| public/javascripts/jstoolbar/jstoolbar.js | ||
|---|---|---|
|
this.tabsBlock.className = 'jstTabs tabs';
|
||
|
var This = this;
|
||
|
this.writeTab = new jsTab('Write', true);
|
||
|
this.writeTab.onclick = function(event) { This.hidePreview.call(This, event); return false; };
|
||
|
this.editTab = new jsTab('Edit', true);
|
||
|
this.editTab.onclick = function(event) { This.hidePreview.call(This, event); return false; };
|
||
|
this.previewTab = new jsTab('Preview');
|
||
|
this.previewTab.onclick = function(event) { This.showPreview.call(This, event); return false; };
|
||
| ... | ... | |
|
elementsTab.classList = 'tab-elements';
|
||
|
var tabs = document.createElement('ul');
|
||
|
tabs.appendChild(this.writeTab);
|
||
|
tabs.appendChild(this.editTab);
|
||
|
tabs.appendChild(this.previewTab);
|
||
|
tabs.appendChild(elementsTab);
|
||
|
this.tabsBlock.appendChild(tabs);
|
||
| ... | ... | |
|
this.toolbar.classList.add('hidden');
|
||
|
this.textarea.classList.add('hidden');
|
||
|
this.preview.classList.remove('hidden');
|
||
|
this.tabsBlock.getElementsByClassName('tab-write')[0].classList.remove('selected');
|
||
|
this.tabsBlock.getElementsByClassName('tab-edit')[0].classList.remove('selected');
|
||
|
event.target.classList.add('selected');
|
||
|
},
|
||
| public/javascripts/jstoolbar/lang/jstoolbar-en.js | ||
|---|---|---|
|
jsToolBar.strings['Preformatted text'] = 'Preformatted text';
|
||
|
jsToolBar.strings['Wiki link'] = 'Link to a Wiki page';
|
||
|
jsToolBar.strings['Image'] = 'Image';
|
||
|
jsToolBar.strings['Write'] = 'Write';
|
||
|
jsToolBar.strings['Preview'] = 'Preview';
|
||
|
jsToolBar.strings['Edit'] = 'Edit';
|
||
|
jsToolBar.strings['Preview'] = 'Preview';
|
||