Skip to content

Commit

Permalink
Make Editor job submission work again in V1
Browse files Browse the repository at this point in the history
Signed-off-by: Leanid Astrakou <[email protected]>
  • Loading branch information
DivergentEuropeans committed Aug 15, 2022
1 parent 6543f07 commit 4d305bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webClient/src/app/core/menu-bar/menu-bar.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export const TEST_LANGUAGE_MENU = [{name:'TEST_REPLACE',
action: {
functionString:`
console.log("My context=",context);
context.editor.model.setValue("GOODBYE TEXT");`, params:[]}, keyMap: ''},
context.editor._modelData.model.setValue("GOODBYE TEXT");`, params:[]}, keyMap: ''},
{name:'Crop',
action: {
functionString:`
const selection = context.editor.cursor.getSelection();
context.log.info('selection=',selection);
if (selection) {
context.editor.model.setValue(context.editor.model.getValueInRange(selection));
context.editor._modelData.model.setValue(context.editor._modelData.model.getValueInRange(selection));
}`, params:[]}, keyMap: ''},
{name:'Is Dataset?',
action: {
Expand Down Expand Up @@ -56,7 +56,7 @@ export const LANGUAGE_MENUS = {
functionString:`
const file = context.controller.fetchActiveFile();
if (file) {
let content = context.editor.model.getValue();
let content = context.editor._modelData.model.getValue();
if (content && content.length > 0) {
content = content.replace(/\\n/g,'\\\\n');
const uri = '/api/v1/jobs/string';
Expand Down

0 comments on commit 4d305bf

Please sign in to comment.