Sha256: ad9359462cc9cfd758537d08d2650e7b18428611fabfb1c6b1fdc00f22153fbf

Contents?: true

Size: 988 Bytes

Versions: 53

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

53 entries across 53 versions & 1 rubygems

Version Path
satis-2.1.60 app/views/satis/documentation/editors/index.html.slim
satis-2.1.59 app/views/satis/documentation/editors/index.html.slim
satis-2.1.58 app/views/satis/documentation/editors/index.html.slim
satis-2.1.57 app/views/satis/documentation/editors/index.html.slim
satis-2.1.56 app/views/satis/documentation/editors/index.html.slim
satis-2.1.55 app/views/satis/documentation/editors/index.html.slim
satis-2.1.54 app/views/satis/documentation/editors/index.html.slim
satis-2.1.53 app/views/satis/documentation/editors/index.html.slim
satis-2.1.52 app/views/satis/documentation/editors/index.html.slim
satis-2.1.51 app/views/satis/documentation/editors/index.html.slim
satis-2.1.50 app/views/satis/documentation/editors/index.html.slim
satis-2.1.49 app/views/satis/documentation/editors/index.html.slim
satis-2.1.48 app/views/satis/documentation/editors/index.html.slim
satis-2.1.47 app/views/satis/documentation/editors/index.html.slim
satis-2.1.46 app/views/satis/documentation/editors/index.html.slim
satis-2.1.45 app/views/satis/documentation/editors/index.html.slim
satis-2.1.44 app/views/satis/documentation/editors/index.html.slim
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