lexxy 0.1.13.beta → 0.1.14.beta
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 +4 -4
- data/README.md +7 -1
- data/app/assets/javascript/lexxy.js +289 -148
- data/app/assets/javascript/lexxy.js.br +0 -0
- data/app/assets/javascript/lexxy.js.gz +0 -0
- data/app/assets/javascript/lexxy.min.js +2 -2
- data/app/assets/javascript/lexxy.min.js.br +0 -0
- data/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/app/assets/stylesheets/lexxy-content.css +24 -1
- data/app/assets/stylesheets/lexxy-editor.css +30 -6
- data/app/assets/stylesheets/lexxy-variables.css +5 -3
- data/app/views/action_text/attachables/_remote_video.html.erb +10 -0
- data/lib/action_text/attachables/remote_video.rb +46 -0
- data/lib/lexxy/attachable.rb +15 -0
- data/lib/lexxy/engine.rb +2 -0
- data/lib/lexxy/rich_text_area_tag.rb +10 -6
- data/lib/lexxy/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 377dd12bef2035dd5f02223c87229ccfae225a81f50536ad55aa5fc85204d378
|
|
4
|
+
data.tar.gz: 42ec66f30ae6603bab32bb87a955cc53ed2d95931284c95c26f6e7257b2fe64d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51656a642926c12a830d0002fb05b60fd6a23570b51535d576ffef32e1518108c89dbeb66a229a7f652441e6dcab38f3164ca6fbdacaaa9e6f9ed9d1e346beed
|
|
7
|
+
data.tar.gz: 77e6d287aaadeedfa77c3a7453f6b1eb6124574d87e3a131d7328416fd676cd4429ac2a2315485ae5ce5d88e8fed964b6d7377f754a36e58c56b664384cf0c46
|
data/README.md
CHANGED
|
@@ -87,7 +87,11 @@ For the CSS, you can include it with the standard Rails helper:
|
|
|
87
87
|
<%= stylesheet_link_tag "lexxy" %>
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
You can copy the CSS to your project and adapt it to your needs.
|
|
91
|
+
|
|
92
|
+
#### Custom styles and dark mode
|
|
93
|
+
|
|
94
|
+
All of Lexxy's color styles are defiend as CSS variables in `app/stylesheets/lexxy-variables.css`. This enables a straightforward way to customize Lexxy to match your application's theme. You can see an example implementation of a custom dark mode style in the Sandbox's stylesheet at `test/dummy/app/assets/stylesheets/sandbox.css`.
|
|
91
95
|
|
|
92
96
|
#### Rendered Action Text content
|
|
93
97
|
|
|
@@ -104,6 +108,8 @@ To apply syntax highlighting to rendered Action Text content, you need to call t
|
|
|
104
108
|
```javascript
|
|
105
109
|
import { Controller } from "@hotwired/stimulus"
|
|
106
110
|
import { highlightAll } from "lexxy"
|
|
111
|
+
// Or if you installed via a javascript bundler:
|
|
112
|
+
// import { highlightAll } from "@37signals/lexxy"
|
|
107
113
|
|
|
108
114
|
export default class extends Controller {
|
|
109
115
|
connect() {
|