Graphical CNXML editor for Legacy CNX platform.
- Clone/download repo
- Open
index.html
file in browser. Preferable in Google Chrome, since its contenteditable behaviour is most comprehensive in this case. - Learn keyboard shortcuts from the front page of the app, to enable its full potential.
- Adding elements: Flux3 allows to add elements template for some of the most common tags in CNXML. By putting caret in the content area and clicking on the one of the icons on yellow toolbar, user can put according element template into the content.
- Wrapping content: Second option is to select text (only text nodes applies to this) and then click on the element icon. This effects the text to be wrapped with a single element, not whole template, since it is imposible to determin what user want to do with the text. This (bottom up) approach consist of creating the structure by wrapping text in desired elemtns.
- Adding siblings: Sometimes user can find himself in a situation that it seems to be impossible to add another element to the tree in place they would want to. In that case it is worth to use following techniques:
- Double click on the label of the elements that user want to add sibling to. This causes extending elements with
---
text node at the end. Alt + Element icon
: adds a new element template after the node that have caret in it.Ctrl + Alt + Element icon
: adds a new element template at the end of the content.Ctrl + โ
orCtrl + โ
: when caret is in an element it moves the element before / after parent node.
- Double click on the label of the elements that user want to add sibling to. This causes extending elements with
- Equations (represented in MathML) are rendered automaticly.
- User can paste MathML markup directly to the content and it will be display as a MathJax element.
- User can edit math by clicking on it with pressed
Alt
key, then put LaTeX formula into the input field. - All pasted MML equations are stored in Equations panel (Ctrl + space) from where they can be reuse. - Pressing
Ctrl + q
user can add empty equation in caret's position.
- Create account on CNX platform.
- Create/derive a module.
- Using flux3 tools create desirable document structure.
- Press
alt + x
to display CNXML preview. - Copy entire content.
- Open full-source editing mode in CNX editor.
- Paste it instead of previous
<content>...</content>
tag. - Save module.
- When caret is in the element press
Enter
to create another element of the same type below the current one (only in Chrome). - When text is selected pressing
Ctrl + i
wraps text with XML<emphasis/>
tag, style as italic. Similar when pressedCtrl + b
applies bold style (only in Chrome).