Simple, yet Towerfull : one day it will be !
- for production :
cd inTheFolder
brunch build --minify -c config-prod.coffee
js & css are in public/bin
- for developement :
cd server-test
coffee server-test.coffee
cd ..
brunch w
- code...
- open localhost:3000 in your browser
## How to use
- put in your project the js and css that are in public/bin
- get the dependencies and add them to your project :
- to create a new editor in an iframe :
var myNewEditor = new CNeditor(iFrameRef,callBack)
- where iframeRef is a ref to the iframe where you will embed your editor and callback is the ... callback to run after init of the editor.
-
run
sh amalgamer.sh [<targetNameHere>]
to generate a JavaScript file that nestes an editor inside the element whose id is<targetNameHere\>
or 'editorIframe' if no argument specified. -
notice that target may not be an iFrame
- constructor(iframeTarget, callBack) : the editor is set within the specified iframe label.
- note : an event called "onHistoryChanged" is triggered on the iframe nesting the editor whenever a content's modification occurs and is significant enough. The editor's content should be saved when it happens.
- getEditorContent() : as expected, return the editor content
- setEditorContent(mdContent) : same here... change the editor content
- unDo() : ctrl-z
- reDo() : ctrl-y
- tab() : tab
- and a lot more...
- Clone git repository and install dependancies
git clone https://github.com/Benibur/cozy-note-editor.git
cd cozy-note-editor
npm install
- These commands may be necessary... ?
git submodule init
git submodule update
- Install brunch and build inside of the project directory
sudo npm install brunch -g
brunch build
* Non-terminals :
* <CozyNote> :
* <note> :
* <ListParaTh> : Th = Title of type <h>
* <ListParaTx> : Tx = Titlte of type Tu or To
* <ParaTh> :
* <ParaTu> : Tu = Title of type <ul><li>
* <ParaTo> : To = Title of type <ol><li>
* <TitleTh> :
* <TitleTu> :
* <TitleTo> :
* <Txt> :
* <Tab> :
* <CozyNote> ::= { (<TitleTh> <CozyNote>) (<TitleTh> <Note>) }* ;
* <Note> ::= <ListParaTh> | <ListParaTu> ;
* <ListParaTh> ::= <ParaTh>+ ;
* <ParaTh> ::= <TitleTh> { (<LigneTh><ListParaTh>?) | (<LigneTh>|<ListParaTu>+) }* ;
* <TitleTh> ::= <Txt> ;
* <LigneTh> ::= <Txt> | <Tab> ;
* <ListParaTx> ::= <ParaTu>+ | <ParaTo>+ ;
* <ParaTu> ::= <TitleTu> {<LigneLu><ListParaTu>?}* ;
* <ParaTo> ::= <TitleTo> {<LigneLo><ListParaTo>?}* ;
* <TitleTu> ::= <Txt> ;
* <TitleTo> ::= <Txt> ;
* <LigneTu> ::= <Txt> | <Tab> ;
* <LigneTo> ::= <Txt> | <Tab> ;
* <Txt> ::= html text ;
* <Tab> ::= a table ;
* <TitleTh> : <div class="Th-xx" > //
* <TitleTu> : <div class="Tu-xx" > // paragraph title of unordered list
* <TitleTo> : <div class="To-xx" > // paragraph title of unordered list
* <LigneTh> : <div class="Lh-xx" > // paragraph line under a Tu
* <LigneTu> : <div class="Lu-xx" > // paragraph line under a Tu
* <LigneTo> : <div class="Lo-xx" > // paragraph line under a To
* <Txt> :
* <Num> :
* <Tab> :
Cozy is a platform that brings all your web services in the same private space. With it, your web apps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one profiles you. You install only the applications you want. You can build your own one too.
You can reach the Cozy community via various support:
- IRC #cozycloud on irc.freenode.net
- Post on our Forum
- Post issues on the Github repos
- Via Twitter