Browse Source

Set editor in smalltalk syntax.

Herby Vojčík 5 years ago
parent
commit
2e375b3f7f
2 changed files with 4 additions and 4 deletions
  1. 3 3
      src/Helios-Workspace.js
  2. 1 1
      src/Helios-Workspace.st

+ 3 - 3
src/Helios-Workspace.js

@@ -1479,7 +1479,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$self.editor = codeMirrorLib.fromTextArea(aTextarea, $self._editorOptions());
+$self.editor=$recv($recv(codeMirrorLib)._provided())._fromTextArea_options_(aTextarea,$self._editorOptions());
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"setEditorOn:",{aTextarea:aTextarea},$globals.HLCodeWidget)});
@@ -1487,10 +1487,10 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aTextarea"],
-source: "setEditorOn: aTextarea\x0a\x09<inlineJS: '$self.editor = codeMirrorLib.fromTextArea(aTextarea, $self._editorOptions())'>",
+source: "setEditorOn: aTextarea\x0a\x09editor := codeMirrorLib provided fromTextArea: aTextarea options: self editorOptions",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: []
+messageSends: ["fromTextArea:options:", "provided", "editorOptions"]
 }),
 $globals.HLCodeWidget);
 

+ 1 - 1
src/Helios-Workspace.st

@@ -235,7 +235,7 @@ saveIt
 !
 
 setEditorOn: aTextarea
-	<inlineJS: '$self.editor = codeMirrorLib.fromTextArea(aTextarea, $self._editorOptions())'>
+	editor := codeMirrorLib provided fromTextArea: aTextarea options: self editorOptions
 ! !
 
 !HLCodeWidget methodsFor: 'hints'!