adrai / adrai/flowchart.js

Using ace text editor

オープン
#56 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
8.7k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。