Using ace text editor
- Vorherrschende Sprache
- JavaScript
- Sterne
- 8.7k
- Forks
- 1.2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello,
Have you thought of including an optional editor?
I've been using it with [Ace (Ajax.org Cloud9 Editor)](http://ace.c9.io/#nav=about) and [with an angular module](https://github.com/angular-ui/ui-ace) as well.
``` html
Update flow chart
```
And in an angular controller:
``` javascript
var self = this;
//- ... Your controller code
$scope.updateFlowChart = function() {
if($scope.flowAceCode) {
if(self.chart) self.chart.clean();
self.chart = flowchart.parse($scope.flowAceCode);
self.chart.drawSVG('flowchart-div', {
...
});
} else if(self.chart)
self.chart.clean();
};
```
The power of this library relies on the fact that [you can write your own syntax highlighter](http://ace.c9.io/#nav=higlighter).
Cheers!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.