Skip to content
Snippets Groups Projects
Commit 8795dc99 authored by felmer's avatar felmer
Browse files

SSDM-4718: configure for openbis/file-service

SVN: 38243
parent f08fa486
No related branches found
No related tags found
No related merge requests found
...@@ -772,7 +772,10 @@ var FormUtil = new function() { ...@@ -772,7 +772,10 @@ var FormUtil = new function() {
// Rich Text Editor Support - (CKEditor) // Rich Text Editor Support - (CKEditor)
// //
CKEDITOR.on( 'instanceReady', function( ev ) { CKEDITOR.on( 'instanceReady', function( ev ) {
ev.editor.dataProcessor.writer.selfClosingEnd = ' />'; var sessionToken = mainController.serverFacade.getSession();
ev.editor.config.filebrowserUploadUrl = '/openbis/file-service/eln-lims?sessionID=' + sessionToken;
ev.editor.config.uploadUrl = '/openbis/file-service/eln-lims?sessionID=' + sessionToken;
ev.editor.dataProcessor.writer.selfClosingEnd = ' />';
}); });
this.activateRichTextProperties = function($component, componentOnChange, propertyType) { this.activateRichTextProperties = function($component, componentOnChange, propertyType) {
......
...@@ -10,9 +10,7 @@ CKEDITOR.editorConfig = function( config ) { ...@@ -10,9 +10,7 @@ CKEDITOR.editorConfig = function( config ) {
config.specialChars = config.specialChars.concat( ['α', 'β', 'γ', 'δ', config.specialChars = config.specialChars.concat( ['α', 'β', 'γ', 'δ',
'ε', 'ζ', 'η', 'θ', 'κ', 'λ', 'μ', 'ξ', 'π', 'ρ', 'σ', 'ε', 'ζ', 'η', 'θ', 'κ', 'λ', 'μ', 'ξ', 'π', 'ρ', 'σ',
'υ', 'φ', 'ψ', 'ω', 'Δ', 'Σ', 'Φ', 'Ω'] ); 'υ', 'φ', 'ψ', 'ω', 'Δ', 'Σ', 'Φ', 'Ω'] );
config.extraPlugins='confighelper'; config.extraPlugins = 'uploadimage,confighelper';
// config.extraPlugins='uploadimage,confighelper';
// config.uploadUrl = '/uploader/upload.php';
config.stylesSet = false; config.stylesSet = false;
config.toolbarGroups = [ config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
...@@ -31,5 +29,6 @@ CKEDITOR.editorConfig = function( config ) { ...@@ -31,5 +29,6 @@ CKEDITOR.editorConfig = function( config ) {
{ name: 'others', groups: [ 'others' ] }, { name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] } { name: 'about', groups: [ 'about' ] }
]; ];
config.removeButtons = 'Save,NewPage,Templates,About,Image,Flash,Smiley,Iframe,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Styles,Source'; config.removeButtons = 'Save,NewPage,Templates,About,Flash,Smiley,Iframe,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Styles,Source';
}; };
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment