Add some component comment (#1779)

* Add a component comment for NoteEditor

* Move comments above component template

* EditorField -> EditingArea
This commit is contained in:
Henrik Giesel 2022-04-19 09:20:26 +02:00 committed by GitHub
parent adbe96ca00
commit cf78a555c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
</script>
<!--
@component
Allows "focusing" an EditingArea, even though it has no open editing inputs.
-->
<input bind:this={input} class="focus-trap" readonly tabindex="-1" on:focus />
<style lang="scss">

View File

@ -273,6 +273,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
setupLifecycleHooks(api);
</script>
<!--
@component
Serves as a pre-slotted convenience component which combines all the common
components and functionality for general note editing.
Functionality exclusive to specifc note-editing views (e.g. in the browser or
the AddCards dialog) should be implemented in the user of this component.
-->
<div class="note-editor">
<FieldsEditor>
<EditorToolbar {size} {wrap} api={toolbar}>