fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 01:01:37 +00:00
parent 39457f6a64
commit cd5cbc84ec

View File

@ -129,11 +129,11 @@ export class Editor {
break; break;
case 'table': case 'table':
textarea.value = textarea.value.slice(0, startPosition) + '\n' textarea.value = textarea.value.slice(0, startPosition) + '\n'
+ '| Tables | Are | Cool |' + '\n' + '| Tables | Are | Cool |\n'
+ '| ------------- |:-----------------:| -----:|' + '\n' + '| ------------- |:-----------------:| -----:|\n'
+ '| col 3 is | right - aligned | $1600 |' + '\n' + '| col 3 is | right - aligned | $1600 |\n'
+ '| col 2 is | centered | $12 |' + '\n' + '| col 2 is | centered | $12 |\n'
+ '| zebra stripes | are neat | $1 |' + '\n' + '| zebra stripes | are neat | $1 |\n'
+ textarea.value.slice(startPosition, textarea.value.length); + textarea.value.slice(startPosition, textarea.value.length);
break; break;
case 'link': { case 'link': {