Erster Checkin für die neue Version 2.0

This commit is contained in:
2017-05-08 14:20:20 +00:00
parent e2dd330449
commit 37cba1c059
21 changed files with 2679 additions and 1643 deletions

57
js/textEditor.js Normal file
View File

@@ -0,0 +1,57 @@
/**
* Text-Editor
* Stellt die Funktionalität für die Bearbeitung der Texte zur Verfügung
*
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 13.10.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
var Text = {
textEditor: null,
textElement: null,
init: function() {
Text.initElements();
},
initElements: function() {
Text.textInput = $('#text');
},
fillEditorContent: function () {
if (CS.editorData === null || CS.editorHtml === '') {
window.setTimeout('Text.fillEditorContent()', 50);
return true;
}
Text.init();
CS.editorData.text = '<p>' + CS.editorData.text + '</p>';
$.each(CS.editorData, function (key, value) {
$("input[type='text'][name='" + key + "'], input[type='hidden'][name='" + key + "'], select[name='" + key + "'], textarea[name='" + key + "']", CS.contentElement).val(value);
});
Text.textEditor = Text.textInput.ckeditor({
enterMode: CKEDITOR.ENTER_BR,
extraPlugins: 'divarea',
height: '500px',
removeButtons: 'Redo,Font,FontSize',
removePlugins: 'elementspath',
toolbarGroups: [
{name: 'clipboard', groups: ['clipboard', 'undo']},
{name: 'editing', groups: ['find', 'selection', 'spellchecker']},
{name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
{name: 'paragraph', groups: ['list']},
{name: 'links'},
{name: 'about'}
]
}).editor;
},
close: function () {
}
};