mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Add some component comment (#1779)
* Add a component comment for NoteEditor * Move comments above component template * EditorField -> EditingArea
This commit is contained in:
parent
adbe96ca00
commit
cf78a555c6
2 changed files with 12 additions and 0 deletions
|
@ -18,6 +18,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
}
|
}
|
||||||
</script>
|
</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 />
|
<input bind:this={input} class="focus-trap" readonly tabindex="-1" on:focus />
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
@ -273,6 +273,14 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
setupLifecycleHooks(api);
|
setupLifecycleHooks(api);
|
||||||
</script>
|
</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">
|
<div class="note-editor">
|
||||||
<FieldsEditor>
|
<FieldsEditor>
|
||||||
<EditorToolbar {size} {wrap} api={toolbar}>
|
<EditorToolbar {size} {wrap} api={toolbar}>
|
||||||
|
|
Loading…
Reference in a new issue