Skip to content
This repository was archived by the owner on Feb 15, 2021. It is now read-only.

Releases: mlowen/CommonMark.Editor

v0.3.1

21 Feb 01:37

Choose a tag to compare

Fixed

  • Issue #4 - Updated to use the commonmark.Parser rather than the removed commonmar.DocParser.

v0.3.0

08 Jan 23:00

Choose a tag to compare

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 the inline option 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

07 Jan 23:34

Choose a tag to compare

New

  • Options
    • toggle (default: true) - This flag denotes if a toggle is displayed in the upper right corner when inline is enabled, if this flag is specified when inline is false it will be ignored.
  • API
    • inline() - Will return a boolean, true if the editor is in "inline" mode and false if in "edit" mode. If inline was not enabled via the options when creating the editor it will always return false.
    • inline(boolean) - Will set if the editor is in "inline" or "edit" mode, this method will only work when the inline flag 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

23 Dec 20:44

Choose a tag to compare

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.