 		clearInterval(@playBallPlayer)
 		@playBallPlaying = false
 
-
-
-	#	$("#playBall").css "transition-timing-function", "cubic-bezier(" + @points[0] + "," + @points[1] + "," + @points[2] + "," + @points[3] + ")"
-	#	$("#playBall").css "transition-duration", "1.0s"
-	#	$("#playBall").css "position", "relative"
-	#	$("#playBall").css "left", "100%"
+	applyToEditor: () ->
+		editor = atom.workspace.getActiveEditor()
+		editor.replaceSelectedText null, =>  "cubic-bezier(" + @points.join() + ")"

		canvas = document.getElementById("cubic-bezier")
		@context = canvas.getContext("2d")
		@drawInitialCurve()


		drag = () =>

atomJquery = require('atom').$
$ = require("jquery")
require('jquery-ui/draggable');

