playbook_ui 16.3.0.pre.alpha.PLAY2782RTEPOCs14847 → 16.3.0.pre.alpha.PLAY2782RTEPOCs14848

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e1992dda937b2b5cbfccb239549fe6ca111676bcb86bae3b296df9b7a5c2d39
4
- data.tar.gz: 8ce49f7e0b5a67a7060af0cb5e03181df203a704b5b8ac9e9573ade7a538370e
3
+ metadata.gz: e7175900ac38d146fb42e4b8253d51343e8babc661f6cf0618fe73ab9b0a5d09
4
+ data.tar.gz: 8c492ed57374d3d07c6bf88a3e77ce4e0e2415d28342ddf5f803460082e158cd
5
5
  SHA512:
6
- metadata.gz: 70cb1043ad6fd7b1222e695336edd15e3ab6565dccd1d6ec09ca03253101855ab40f925b57e51722d78f9ce53834bfb658e6072a52a10d835ae8dc10bd289600
7
- data.tar.gz: 14fd821a7c6da64695c77b7eec55238eddf41dd478f84c61d082dcaf2d0d0195da0a39295f691d3a5bddb083cf105fa302137912a9fb3577116e9f682bb6feca
6
+ metadata.gz: 143aeafff5f1710f6dcdd24481fe2b41f5235c91007ce824ea5232de45909fbd2f88e79b4d513f2da04fa647be1a610472b9183d7f4397cfcc3499f818c27a79
7
+ data.tar.gz: 94f681e6de0e59381216a0ba30aef303e77aaf8249aacd24ab0e2540dfd490cbfd007994f39c274470b1e293e97bb0c59003d274c09efc8851ed1bddf1af2cc3
@@ -1,6 +1,6 @@
1
1
  <link rel="stylesheet" href="https://unpkg.com/@37signals/lexxy@0.7.6-beta/dist/stylesheets/lexxy-content.css" />
2
2
  <link rel="stylesheet" href="https://unpkg.com/@37signals/lexxy@0.7.6-beta/dist/stylesheets/lexxy-editor.css" />
3
- <%= pb_content_tag(:div, id: object.container_id, class: object.classname, data: { pb_rte_lexxy: true }) do %>
3
+ <%= pb_content_tag(:div, id: object.container_id, class: object.classname, data: { pb_rte_lexxy: true, initial_html: object.value.presence }) do %>
4
4
  <div class="pb_rich_text_editor_kit">
5
5
  <% if object.label.present? %>
6
6
  <label for="<%= object.input_id %>">
@@ -28,5 +28,11 @@
28
28
  if (Lexxy.configure) {
29
29
  Lexxy.configure({ default: { attachments: false } });
30
30
  }
31
+ const initialHtml = container.dataset.initialHtml;
32
+ if (initialHtml) {
33
+ await customElements.whenDefined("lexxy-editor");
34
+ const editor = container.querySelector("lexxy-editor");
35
+ if (editor) editor.value = initialHtml;
36
+ }
31
37
  })();
32
38
  </script>
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "16.3.0"
5
- VERSION = "16.3.0.pre.alpha.PLAY2782RTEPOCs14847"
5
+ VERSION = "16.3.0.pre.alpha.PLAY2782RTEPOCs14848"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.3.0.pre.alpha.PLAY2782RTEPOCs14847
4
+ version: 16.3.0.pre.alpha.PLAY2782RTEPOCs14848
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX