Sha256: ad9359462cc9cfd758537d08d2650e7b18428611fabfb1c6b1fdc00f22153fbf

Contents?: true

Size: 988 Bytes

Versions: 36

Compression:

Stored size: 988 Bytes

Contents

h1 Editors

| Editors can be used with or without a form

p A simple editor (not readonly)

= sts.editor readonly: false do
  | = sts.editor readonly: false do
      | function(event) {
          console.log(event.target)
        }
br
= sts.editor readonly: false do
  | function(event) {
      console.log(event.target)
    }

p A simple readonly editor. You shouldn't be able to type in the editor.
An editor is always read-only if you pass a block, unless you're using a form.

= sts.editor do
  | = sts.editor do
      | function(event) {
          console.log(event.target)
        }
br
= sts.editor do
  | function(event) {
      console.log(event.target)
    }


h2 Form based editors

= sts.editor do
  | = sts.form_for(@document, url: documentation_index_path) do |f|
      .grid.grid-cols-12.gap-4
        .col-span-12
          = f.editor :code

= sts.form_for(@document, url: documentation_index_path) do |f|
  .grid.grid-cols-12.gap-4
    .col-span-12
      = f.editor :code

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
satis-2.1.43 app/views/satis/documentation/editors/index.html.slim
satis-2.1.42 app/views/satis/documentation/editors/index.html.slim
satis-2.1.41 app/views/satis/documentation/editors/index.html.slim
satis-2.1.40 app/views/satis/documentation/editors/index.html.slim
satis-2.1.39 app/views/satis/documentation/editors/index.html.slim
satis-2.1.38 app/views/satis/documentation/editors/index.html.slim
satis-2.1.37 app/views/satis/documentation/editors/index.html.slim
satis-2.1.36 app/views/satis/documentation/editors/index.html.slim
satis-2.1.35 app/views/satis/documentation/editors/index.html.slim
satis-2.1.33 app/views/satis/documentation/editors/index.html.slim
satis-2.1.31 app/views/satis/documentation/editors/index.html.slim
satis-2.1.30 app/views/satis/documentation/editors/index.html.slim
satis-2.1.29 app/views/satis/documentation/editors/index.html.slim
satis-2.1.28 app/views/satis/documentation/editors/index.html.slim
satis-2.1.27 app/views/satis/documentation/editors/index.html.slim
satis-2.1.26 app/views/satis/documentation/editors/index.html.slim
satis-2.1.24 app/views/satis/documentation/editors/index.html.slim
satis-2.1.23 app/views/satis/documentation/editors/index.html.slim
satis-2.1.22 app/views/satis/documentation/editors/index.html.slim
satis-2.1.21 app/views/satis/documentation/editors/index.html.slim