Skip to content

Releases: WebCoder49/code-input

1.1.1

Choose a tag to compare

@WebCoder49 WebCoder49 released this 15 Jul 07:05

Bug Fixes

  • #12 Several minor bugs:
    • Fix handling + transfer of onchange/onselectionchange events
    • Fix padding bug in environments like bootstrap
    • Reset font-size to normal

1.1.0

Choose a tag to compare

@WebCoder49 WebCoder49 released this 04 Jul 18:35
3bec1d4

🆕 What's in this release?

  • Plugin structure
    • autodetect language with highlight.js
    • indent - indentation + synchronised on new lines
  • Support for registering a template after it is used on the page

For more information, please see the README.

1.0.3

Choose a tag to compare

@WebCoder49 WebCoder49 released this 26 Jun 18:04

Small feature

  • #7 - added a handler to enable auto-indent with the enter key (@RobertBlackhart)
    Thanks for the pull request, and please send more if anybody has ideas!

1.0.2

Choose a tag to compare

@WebCoder49 WebCoder49 released this 26 Jun 17:38

Bug Fix

  • #7 Added autodetection for highlight.js - just use highlight.js without a lang attribute!

1.0.1

Choose a tag to compare

@WebCoder49 WebCoder49 released this 26 Jun 08:04

Bug Fixes

  • #1
  • #2
  • #3
    Thanks to everybody who pointed out bugs for this release!

1.0.0

Choose a tag to compare

@WebCoder49 WebCoder49 released this 19 Sep 15:26
1135ab8

🆕 What's in this release?

  • Support for indentation, templates for specifying highlight functions, and placeholder attributes for <code-input> custom element
  • Built-in templates (register using codeInput.registerTemplate(template_name, template); link to element using template attribute):
    • codeInput.template.prism(prism)
      • Prism.js support built-in
    • codeInput.template.hljs(hljs)
      • highlight.js support built-in
    • codeInput.template.characterLimit()
      • Maximum character count in data-character-limit attribute
      • Characters over limit in mark.overflow element
      • Overflow message shown in mark.overflow-msg element
    • codeInput.rainbowText(rainbow_colors?, delimiter?)
      • Styles each section of text split by delimiter to color in rainbow_colors array