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