altexxy 0.9.21.3
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +31 -0
- data/Rakefile +14 -0
- data/app/assets/javascript/lexxy.js +18349 -0
- data/app/assets/javascript/lexxy.js.br +0 -0
- data/app/assets/javascript/lexxy.js.gz +0 -0
- data/app/assets/javascript/lexxy.js.map +1 -0
- data/app/assets/javascript/lexxy.min.js +11 -0
- 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 +504 -0
- data/app/assets/stylesheets/lexxy-editor.css +1250 -0
- data/app/assets/stylesheets/lexxy-variables.css +87 -0
- data/app/assets/stylesheets/lexxy.css +2 -0
- data/app/views/action_text/attachables/_remote_video.html.erb +10 -0
- data/config/ci.rb +19 -0
- data/ext/Rakefile +31 -0
- data/lib/action_text/attachables/remote_video.rb +46 -0
- data/lib/action_text/editor/lexxy_editor.rb +17 -0
- data/lib/active_storage/blob_with_preview_url.rb +18 -0
- data/lib/lexxy/action_text_tag.rb +18 -0
- data/lib/lexxy/attachable.rb +15 -0
- data/lib/lexxy/engine.rb +70 -0
- data/lib/lexxy/form_builder.rb +9 -0
- data/lib/lexxy/form_helper.rb +9 -0
- data/lib/lexxy/rich_text_area_tag.rb +43 -0
- data/lib/lexxy/version.rb +3 -0
- data/lib/lexxy.rb +33 -0
- data/lib/tasks/actiontext/lexical_tasks.rake +4 -0
- metadata +171 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 90d92175559aba3911a489c4983d24d19901beeb8ca59f63e34f80c4f03ee398
|
|
4
|
+
data.tar.gz: 37aad2cc929f8c6ac31dd198d641ded7445a1e297162dbdcd5270c0a5da01d3e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a6bb6d2785d55e7c20341f971a641478ec3b8192e3f421277f9e3718d39ff085f9412e20810ce02ece664977afd925bfc693e4a59492fa2ca4a82d13a58bf4bc
|
|
7
|
+
data.tar.gz: 45c35384db51627e3150ac32b086967fee0a521a03eb604fc8bd265bf34940549a29e95610ec0595b4c04568b33c7fcb59b95e7e8dce4f5157c38f11c47b7548
|
data/MIT-LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright Jorge Manrubia
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Lexxy
|
|
2
|
+
|
|
3
|
+
A modern rich text editor for Rails.
|
|
4
|
+
|
|
5
|
+
[Documentation](https://basecamp.github.io/lexxy/docs/) | <mark>[Try it out!](https://basecamp.github.io/lexxy/sandbox/)</mark>
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Built on top of [Lexical](https://lexical.dev), the powerful text editor framework from Meta.
|
|
10
|
+
- Good HTML semantics. Paragraphs are real `<p>` tags, as they should be.
|
|
11
|
+
- Markdown support: shortcuts, auto-formatting on paste.
|
|
12
|
+
- Real-time code syntax highlighting.
|
|
13
|
+
- Create links by pasting URLs on selected text.
|
|
14
|
+
- Configurable prompts. Support for mentions and other interactive prompts with multiple loading and filtering strategies.
|
|
15
|
+
- Preview attachments like PDFs and Videos in the editor.
|
|
16
|
+
- Works seamlessly with Action Text, generating the same canonical HTML format it expects for attachments.
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
## Contributing
|
|
21
|
+
|
|
22
|
+
- Bug reports and pull requests are welcome on [GitHub Issues](https://github.com/basecamp/lexxy/issues). Help is especially welcome with [those tagged as "Help Wanted"](https://github.com/basecamp/lexxy/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22help%20wanted%22).
|
|
23
|
+
- For questions and general Lexxy discussion, please use the [Discussions section](https://github.com/basecamp/lexxy/discussions)
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
|
|
27
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
[](https://github.com/basecamp/lexxy/actions/workflows/ci.yml)
|
data/Rakefile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require "bundler/setup"
|
|
2
|
+
|
|
3
|
+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
|
4
|
+
load "rails/tasks/engine.rake"
|
|
5
|
+
|
|
6
|
+
load "rails/tasks/statistics.rake"
|
|
7
|
+
|
|
8
|
+
require "bundler/gem_tasks"
|
|
9
|
+
|
|
10
|
+
task :yarn_build do
|
|
11
|
+
sh "yarn build"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
Rake::Task["build"].enhance([ :yarn_build ])
|