This also hides metadata editor from the ui for now - it must be
moved somewhere else.
-.rng-module-rng2-right {
- /*float: right;
- position: relative;
- width: 258px;
- margin-left: 50px;*/
-
- border-width: 1px 1px 1px 1px;
- border-style: solid;
- border-color: #ddd;
- padding: 5px 15px;
-
- p, td, label, input, select {
- font-size: 11px;
- line-height:13px;
- }
-
- select {
- -webkit-appearance: button;
- -moz-appearance: button;
- appearance: button;
- height: auto;
- line-height: 14px;
- }
-
- legend {
- font-size:11px;
- height:30px;
- }
-
-
- .rng-view-tabs-tabBar {
- position:absolute;
- top:-1px;
- right:-50px;
- border-width: 1px 1px 1px 0px;
- border-style: solid;
- border-color: #ddd;
- padding: 5px;
- background: #ededed;
- }
-
- label + select {
- position:relative;
- top: 5px;
- }
-
-}
-
.rng-module-rng2-statusBar {
margin: 10px 5px;
font-size:0.9em;
.rng-module-rng2-statusBar {
margin: 10px 5px;
font-size:0.9em;
- [fnpjs-place="leftColumn"], [fnpjs-place="rightColumn"] {
+ [fnpjs-place="leftColumn"] {
position: absolute;
top: 30px; //
bottom: 50px; //
position: absolute;
top: 30px; //
bottom: 50px; //
- }
-
- [fnpjs-place="leftColumn"] {
-
- [fnpjs-place="rightColumn"] {
- right: 0px;
- width: 290px;
-
- }
-
-
}
\ No newline at end of file
}
\ No newline at end of file
'./documentSummary',
'libs/underscore',
'fnpjs/layout',
'./documentSummary',
'libs/underscore',
'fnpjs/layout',
'fnpjs/logging/logging',
'views/tabs/tabs',
'libs/text!./mainLayout.html',
'libs/text!./editingLayout.html',
'libs/text!./diffLayout.html',
'fnpjs/logging/logging',
'views/tabs/tabs',
'libs/text!./mainLayout.html',
'libs/text!./editingLayout.html',
'libs/text!./diffLayout.html',
-], function(documentSummary, _, layout, vbox, logging, tabs, mainLayoutTemplate, visualEditingLayoutTemplate, diffLayoutTemplate) {
+], function(documentSummary, _, layout, logging, tabs, mainLayoutTemplate, visualEditingLayoutTemplate, diffLayoutTemplate) {
if(fragment && fragment.node) {
elementParent = fragment.node.getNearestElementNode();
sandbox.getModule('nodeBreadCrumbs').setNodeElement(elementParent);
if(fragment && fragment.node) {
elementParent = fragment.node.getNearestElementNode();
sandbox.getModule('nodeBreadCrumbs').setNodeElement(elementParent);
- sandbox.getModule('metadataEditor').setNodeElement(elementParent);
} else {
sandbox.getModule('nodeBreadCrumbs').setNodeElement(null);
} else {
sandbox.getModule('nodeBreadCrumbs').setNodeElement(null);
- sandbox.getModule('metadataEditor').setNodeElement(null);
mainLayout: new layout.Layout(mainLayoutTemplate),
mainTabs: (new tabs.View()).render(),
visualEditing: new layout.Layout(visualEditingLayoutTemplate),
mainLayout: new layout.Layout(mainLayoutTemplate),
mainTabs: (new tabs.View()).render(),
visualEditing: new layout.Layout(visualEditingLayoutTemplate),
- visualEditingSidebar: (new tabs.View({stacked: true})).render(),
- currentNodePaneLayout: new vbox.VBox(),
diffLayout: new layout.Layout(diffLayoutTemplate)
};
diffLayout: new layout.Layout(diffLayoutTemplate)
};
- views.visualEditing.setView('rightColumn', views.visualEditingSidebar.getAsView());
addMainTab(gettext('Editor'), 'editor', views.visualEditing.getAsView());
addMainTab(gettext('Source'), 'sourceEditor', '');
addMainTab(gettext('History'), 'history', views.diffLayout.getAsView());
sandbox.getDOM().append(views.mainLayout.getAsView());
addMainTab(gettext('Editor'), 'editor', views.visualEditing.getAsView());
addMainTab(gettext('Source'), 'sourceEditor', '');
addMainTab(gettext('History'), 'history', views.diffLayout.getAsView());
sandbox.getDOM().append(views.mainLayout.getAsView());
- views.visualEditingSidebar.addTab({icon: 'pencil'}, 'edit', views.currentNodePaneLayout.getAsView());
-
var wlxmlDocument, documentIsDirty;
/* Events handling */
var wlxmlDocument, documentIsDirty;
/* Events handling */
sandbox.getModule('mainBar').setCommandEnabled('drop-draft', usingDraft);
sandbox.getModule('mainBar').setCommandEnabled('save', usingDraft);
sandbox.getModule('mainBar').setCommandEnabled('drop-draft', usingDraft);
sandbox.getModule('mainBar').setCommandEnabled('save', usingDraft);
- _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'metadataEditor', 'nodeBreadCrumbs', 'mainBar', 'indicator', 'documentHistory', 'diffViewer', 'statusBar'], function(moduleName) {
+ _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'nodeBreadCrumbs', 'mainBar', 'indicator', 'documentHistory', 'diffViewer', 'statusBar'], function(moduleName) {
sandbox.getModule(moduleName).start();
});
sandbox.getModule(moduleName).start();
});
- eventHandlers.metadataEditor = {
- ready: function() {
- sandbox.getModule('metadataEditor').setDocument(sandbox.getModule('data').getDocument());
- views.visualEditingSidebar.addTab({icon: 'info-sign'}, 'metadataEditor', sandbox.getModule('metadataEditor').getView());
- }
- };
-
eventHandlers.documentToolbar = {
ready: function() {
views.visualEditing.setView('toolbar', sandbox.getModule('documentToolbar').getView());
eventHandlers.documentToolbar = {
ready: function() {
views.visualEditing.setView('toolbar', sandbox.getModule('documentToolbar').getView());