Definition almost finished

This commit is contained in:
Luis Fernando Molina committed 2020-12-27 13:46:49 +01:00
1 parent 18424b3ea3
commit 87d5f609f8
3 files changed
+22 -10

No files matched your search

@@ -6,7 +6,17 @@
"paragraphs": [
{
"style": "Text",
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode."
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Vaina",
"translations": [
{
"language": "RU",
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Vaina"
},
{
"language": "ES",
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Vaina"
}
]
},
{
"style": "Text",
@@ -1,7 +1,17 @@
{
"type": "Vaina",
"definition": {
"text": "Write here the definition of this Concept."
"text": "Write here the definition of this Concept.",
"translations": [
{
"language": "ES",
"text": "Escribe aqui la definición de este proyecto."
},
{
"language": "RU",
"text": "Esto es una Vainuska "
}
]
},
"paragraphs": [
{
@@ -1942,14 +1942,6 @@ function newSuperalgosDocSpace() {
if (docsSchemaDocument.definition !== undefined) {
let definitionText = getTextBasedOnLanguage(docsSchemaDocument.definition)
/*Migrating to new data structure */
if (definitionText === undefined) {
docsSchemaDocument.definition = {
text: docsSchemaDocument.definition
}
definitionText =docsSchemaDocument.definition.text
}
if (category === 'Topic' || category === 'Concept') {
HTML = HTML + '<div id="definition-summary-editable-paragraph" class="docs-summary"><b>Summary:</b> ' + addToolTips(definitionText) + '</div>'
} else {