At.js v1.0.0 Release Notes
-
The naming convention are using camel case.
It means that every callback and setting's name are switched from underscope_naming to CamelNaming. Sorry about this.Future version's naming will follow the rules of http://semver.org constantly.
Options:
- Replaced
tpl
withdisplayTpl
: display template of dropdown menu items. In previous versions, At.js will fetch the value ofdata-value
to insert; It stops doing it.
Please use theinsertTpl
option to manage the content to insert instead.
The default value is"<li>${name}</li>"
- The
insertTpl
option will be used in textarea as well. The default value is"${atwho-at}${name}"
Callbacks:
- Added
afterMatchFailed
callback to contentEditable It will be invoked after fail to match any query and stopping matching.
Open examples/hashtas.html to examine how it work. - Removed
inserting_wrapper
callback to contentEditable
Internal changes:
🔨 refactor the
Controller
IntroducedEditableController
class to control actions ofcontenteditable
element.
IntroducedTextareaController
class to control actions oftextarea
element.
Both of them are inherit from theController
class.🔨 Refactored contentEditable mode Inserted content are wrapped in a span:
<span class=".atwho-inserted"/>
Querying content are wrapped in a span:<span class=".atwho-query"/>
Bring back auto-discovery to iframe.
🛠 Fix wrong offset in iframe
Replaced
iframeStandalone
withiframeAdRoot
0️⃣ All processed events are preventing default and stopping propagation.
- Replaced