Using ace text editor
- Lenguaje dominante
- JavaScript
- Estrellas
- 8.7k
- Forks
- 1.2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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!
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.