This repository was archived by the owner on Feb 15, 2021. It is now read-only.
Releases: mlowen/CommonMark.Editor
Releases · mlowen/CommonMark.Editor
v0.3.1
v0.3.0
New
- Options
name(default: null) - When set to a non-null value this will set the name of the text area in the editor so it can be used as part of a form.
- Events
inlineToggled- Fires when the editor is swapped between "inline" and "edit" mode, event is only active when theinlineoption has been set to true.
Fixed
- Issue #3 - When editing the middle of the text in the editor the cursor would jump to the end of the text after each key press.
Baby steps
New
- Options
toggle(default: true) - This flag denotes if a toggle is displayed in the upper right corner wheninlineis enabled, if this flag is specified wheninlineis false it will be ignored.
- API
inline()- Will return a boolean,trueif the editor is in "inline" mode andfalseif in "edit" mode. Ifinlinewas not enabled via the options when creating the editor it will always returnfalse.inline(boolean)- Will set if the editor is in "inline" or "edit" mode, this method will only work when theinlineflag is set to true when creating the editor, otherwise it does nothing.
- Knockout bindings
- Updated the inline option so it can have an observable passed to it that it will respect.
Hello World
New
- Base editor exposed as a jQuery plugin.
- Options
header- enable/disable header background.save- enable/disable save button.inline- enable/disable the inline display of the editor.title- sets the title to display when inline mode is active.
- API
text()- retrieve the current text of the editor.text(str)- sets the current text of the editor.element- the jQuery DOM element that the editor is bound to.
- Events
change- triggered when the content of the editor changes.