Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
517a4d0
Adds ActionTextAttachmentMarkNode that extends MarkNode to build comm…
z-of-nz Oct 21, 2025
38fe82c
removes idea files and adds it to gitignore for its folders
z-of-nz Oct 22, 2025
f300776
Revision of ActionTextAttachmentMarkNode
z-of-nz Oct 24, 2025
abea6c2
fixes missing sgid in cline method of ActionTextAttachmentMarkNode
z-of-nz Oct 24, 2025
9b71b31
removes obsolete padding for action-text-attachment-mark-node
z-of-nz Oct 25, 2025
b60a48b
adds command for deletion of ActionTextAttachmentMarkNode to dispatch…
z-of-nz Oct 27, 2025
551f266
removes obsolete changes to editor.js
z-of-nz Oct 27, 2025
ea3092d
refines css for action-text-attachment-mark-node
z-of-nz Oct 28, 2025
1797755
preserving critical white space handling of lexicals spans: adds "spa…
z-of-nz Oct 28, 2025
14f88ac
adds insertAttachment method as api for external frontends that adds …
z-of-nz Nov 4, 2025
4173623
Add eslint
jorgemanrubia Oct 31, 2025
8e2067b
Toolbar resizing with ResizeObserver()
zoltanhosszu Oct 30, 2025
18b4a0c
Removed unnecessary try-catch block
zoltanhosszu Oct 31, 2025
bbd3a85
Source rebuilt
zoltanhosszu Oct 31, 2025
0b86ec7
Get the branch up to date and merge lint errors
jorgemanrubia Oct 31, 2025
652b8dd
Ignore vendor
jorgemanrubia Oct 31, 2025
746250e
Parentheses can help with readability!
jorgemanrubia Oct 31, 2025
7cf953e
Excklude vendored files from codeQL analysis
jorgemanrubia Oct 31, 2025
81e25e8
Remove codeQL
jorgemanrubia Oct 31, 2025
f054501
Add support for remote videos
jorgemanrubia Oct 31, 2025
ca46493
Add comment about importing Lexxy via javascript bundler
davidalejandroaguilar Oct 5, 2025
9a8fc8e
Bump turbo-rails from 2.0.16 to 2.0.20
dependabot[bot] Oct 29, 2025
8ba841b
Bump actions/upload-artifact from 4 to 5
dependabot[bot] Oct 27, 2025
1d762e4
Bump selenium-webdriver from 4.35.0 to 4.38.0
dependabot[bot] Oct 27, 2025
bb038ae
Bump puma from 7.0.3 to 7.1.0
dependabot[bot] Oct 20, 2025
3f51faa
Scope link dialog lookup within the toolbar
toddsiegel Oct 9, 2025
7d0d77d
Hide upload button from default toolbar when attachments is set to false
AlexB52 Oct 9, 2025
cbe59ce
Fix linting error and rebuild
jorgemanrubia Nov 1, 2025
0d493de
Fix lexxy_rich_textarea_tag not passing value to <lexxy-editor>
LukBrezina Oct 31, 2025
d277c07
Upload assets
jorgemanrubia Nov 1, 2025
0a86305
Format
jorgemanrubia Nov 1, 2025
00db3a2
Fix test
jorgemanrubia Nov 1, 2025
bf0e8c9
Fix tests
jorgemanrubia Nov 1, 2025
0dd8c3b
Fix tests
jorgemanrubia Nov 1, 2025
7c563af
Bump version
jorgemanrubia Nov 1, 2025
1a737c4
Bump version
jorgemanrubia Nov 1, 2025
28ee172
Nicer optional attributes
jorgemanrubia Nov 2, 2025
7044fe3
Update to latest Lexical
jorgemanrubia Nov 4, 2025
d5d14de
Bump version
jorgemanrubia Nov 4, 2025
2f06849
v0.1.15-beta
jorgemanrubia Nov 4, 2025
f7ce3a2
Fix: misplaced prompt when it shrinks
jorgemanrubia Nov 4, 2025
845e90e
Creating quotes with multiple lines should keep newlines
jorgemanrubia Nov 4, 2025
8ac56b9
Wrap selected nodes with blockquotes normally
jorgemanrubia Nov 4, 2025
a59c741
Let you escape from formatted elements inside of blockquotes
jorgemanrubia Nov 4, 2025
917550f
Extract methods
jorgemanrubia Nov 4, 2025
f7bf3f5
Don't convert markdown when pasting into code blocks
jorgemanrubia Nov 4, 2025
c013b41
Remove unused function
jorgemanrubia Nov 4, 2025
34e901d
Support blockquote splitting too
jorgemanrubia Nov 4, 2025
fcf6b54
Bump version
jorgemanrubia Nov 4, 2025
0766f17
v0.1.16-beta
jorgemanrubia Nov 4, 2025
04de039
Only handle ENTER in FormatEscaper when inside blockquote
jorgemanrubia Nov 4, 2025
eff0631
Insert links when no text is selected
jorgemanrubia Nov 4, 2025
aba3d12
Bump version
jorgemanrubia Nov 4, 2025
9639a7c
v0.1.17-beta
jorgemanrubia Nov 4, 2025
a6f01a6
merge main
z-of-nz Oct 21, 2025
4842100
Revision of ActionTextAttachmentMarkNode
z-of-nz Oct 24, 2025
d0de0b4
fixes missing sgid in cline method of ActionTextAttachmentMarkNode
z-of-nz Oct 24, 2025
7337d0c
removes obsolete padding for action-text-attachment-mark-node
z-of-nz Oct 25, 2025
379fbb1
adds command for deletion of ActionTextAttachmentMarkNode to dispatch…
z-of-nz Oct 27, 2025
4f75441
refines css for action-text-attachment-mark-node
z-of-nz Oct 28, 2025
eb42b0e
preserving critical white space handling of lexicals spans: adds "spa…
z-of-nz Oct 28, 2025
33396cf
adds insertAttachment method as api for external frontends that adds …
z-of-nz Nov 4, 2025
cef847b
merging changes from basecamp/lexxy
z-of-nz Nov 5, 2025
d1af0f1
eslinting
z-of-nz Nov 5, 2025
95f368d
fixing deletion of ActionTextAttachmentMarkNode in editor
z-of-nz Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ jobs:
ruby-version: ruby-3.3.7
bundler-cache: true

- name: Lint code for consistent style
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install JavaScript dependencies
run: yarn install --frozen-lockfile

- name: Lint Ruby code for consistent style
run: bin/rubocop -f github

- name: Lint JavaScript code for consistent style
run: yarn lint

test:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -52,7 +64,7 @@ jobs:
bin/rails test:all

- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
if: failure()
with:
name: screenshots
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/test/dummy/tmp/
/dist/
/node_modules/
.idea
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

696 changes: 696 additions & 0 deletions .idea/lexxy.iml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

151 changes: 78 additions & 73 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,78 +1,81 @@
PATH
remote: .
specs:
lexxy (0.1.13.beta)
lexxy (0.1.17.beta)
rails (>= 8.0.2)

GEM
remote: https://rubygems.org/
specs:
actioncable (8.0.2.1)
actionpack (= 8.0.2.1)
activesupport (= 8.0.2.1)
action_text-trix (2.1.15)
railties
actioncable (8.1.1)
actionpack (= 8.1.1)
activesupport (= 8.1.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (8.0.2.1)
actionpack (= 8.0.2.1)
activejob (= 8.0.2.1)
activerecord (= 8.0.2.1)
activestorage (= 8.0.2.1)
activesupport (= 8.0.2.1)
actionmailbox (8.1.1)
actionpack (= 8.1.1)
activejob (= 8.1.1)
activerecord (= 8.1.1)
activestorage (= 8.1.1)
activesupport (= 8.1.1)
mail (>= 2.8.0)
actionmailer (8.0.2.1)
actionpack (= 8.0.2.1)
actionview (= 8.0.2.1)
activejob (= 8.0.2.1)
activesupport (= 8.0.2.1)
actionmailer (8.1.1)
actionpack (= 8.1.1)
actionview (= 8.1.1)
activejob (= 8.1.1)
activesupport (= 8.1.1)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (8.0.2.1)
actionview (= 8.0.2.1)
activesupport (= 8.0.2.1)
actionpack (8.1.1)
actionview (= 8.1.1)
activesupport (= 8.1.1)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actiontext (8.0.2.1)
actionpack (= 8.0.2.1)
activerecord (= 8.0.2.1)
activestorage (= 8.0.2.1)
activesupport (= 8.0.2.1)
actiontext (8.1.1)
action_text-trix (~> 2.1.15)
actionpack (= 8.1.1)
activerecord (= 8.1.1)
activestorage (= 8.1.1)
activesupport (= 8.1.1)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (8.0.2.1)
activesupport (= 8.0.2.1)
actionview (8.1.1)
activesupport (= 8.1.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (8.0.2.1)
activesupport (= 8.0.2.1)
activejob (8.1.1)
activesupport (= 8.1.1)
globalid (>= 0.3.6)
activemodel (8.0.2.1)
activesupport (= 8.0.2.1)
activerecord (8.0.2.1)
activemodel (= 8.0.2.1)
activesupport (= 8.0.2.1)
activemodel (8.1.1)
activesupport (= 8.1.1)
activerecord (8.1.1)
activemodel (= 8.1.1)
activesupport (= 8.1.1)
timeout (>= 0.4.0)
activestorage (8.0.2.1)
actionpack (= 8.0.2.1)
activejob (= 8.0.2.1)
activerecord (= 8.0.2.1)
activesupport (= 8.0.2.1)
activestorage (8.1.1)
actionpack (= 8.1.1)
activejob (= 8.1.1)
activerecord (= 8.1.1)
activesupport (= 8.1.1)
marcel (~> 1.0)
activesupport (8.0.2.1)
activesupport (8.1.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
json
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
Expand All @@ -82,8 +85,7 @@ GEM
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3)
base64 (0.3.0)
benchmark (0.4.1)
bigdecimal (3.2.2)
bigdecimal (3.3.1)
builder (3.3.0)
capybara (3.40.0)
addressable
Expand All @@ -100,9 +102,9 @@ GEM
cuprite (0.17)
capybara (~> 3.0)
ferrum (~> 0.17.0)
date (3.4.1)
date (3.5.0)
drb (2.2.3)
erb (5.0.2)
erb (5.1.3)
erubi (1.13.1)
ferrum (0.17.1)
addressable (~> 2.5)
Expand Down Expand Up @@ -146,7 +148,7 @@ GEM
mini_magick (5.3.1)
logger
mini_mime (1.1.5)
minitest (5.25.5)
minitest (5.26.0)
net-imap (0.5.10)
date
net-protocol
Expand All @@ -157,17 +159,17 @@ GEM
net-smtp (0.5.1)
net-protocol
nio4r (2.7.4)
nokogiri (1.18.9-aarch64-linux-gnu)
nokogiri (1.18.10-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.9-arm64-darwin)
nokogiri (1.18.10-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-gnu)
nokogiri (1.18.10-x86_64-linux-gnu)
racc (~> 1.4)
parallel (1.27.0)
parser (3.3.9.0)
ast (~> 2.4.1)
racc
pp (0.6.2)
pp (0.6.3)
prettyprint
prettyprint (0.2.0)
prism (1.4.0)
Expand All @@ -179,55 +181,57 @@ GEM
date
stringio
public_suffix (6.0.2)
puma (7.0.3)
puma (7.1.0)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.2.1)
rack (3.2.3)
rack-session (2.1.1)
base64 (>= 0.1.0)
rack (>= 3.0.0)
rack-test (2.2.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails (8.0.2.1)
actioncable (= 8.0.2.1)
actionmailbox (= 8.0.2.1)
actionmailer (= 8.0.2.1)
actionpack (= 8.0.2.1)
actiontext (= 8.0.2.1)
actionview (= 8.0.2.1)
activejob (= 8.0.2.1)
activemodel (= 8.0.2.1)
activerecord (= 8.0.2.1)
activestorage (= 8.0.2.1)
activesupport (= 8.0.2.1)
rails (8.1.1)
actioncable (= 8.1.1)
actionmailbox (= 8.1.1)
actionmailer (= 8.1.1)
actionpack (= 8.1.1)
actiontext (= 8.1.1)
actionview (= 8.1.1)
activejob (= 8.1.1)
activemodel (= 8.1.1)
activerecord (= 8.1.1)
activestorage (= 8.1.1)
activesupport (= 8.1.1)
bundler (>= 1.15.0)
railties (= 8.0.2.1)
railties (= 8.1.1)
rails-dom-testing (2.3.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.0.2.1)
actionpack (= 8.0.2.1)
activesupport (= 8.0.2.1)
railties (8.1.1)
actionpack (= 8.1.1)
activesupport (= 8.1.1)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
tsort (>= 0.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.3.0)
rdoc (6.14.2)
rake (13.3.1)
rdoc (6.15.0)
erb
psych (>= 4.0.0)
tsort
regexp_parser (2.11.2)
reline (0.6.2)
io-console (~> 0.5)
rexml (3.4.2)
rexml (3.4.4)
rubocop (1.80.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
Expand Down Expand Up @@ -260,9 +264,9 @@ GEM
ruby-vips (2.2.5)
ffi (~> 1.12)
logger
rubyzip (3.0.2)
rubyzip (3.2.1)
securerandom (0.4.1)
selenium-webdriver (4.35.0)
selenium-webdriver (4.38.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
Expand All @@ -276,15 +280,16 @@ GEM
stringio (3.1.7)
thor (1.4.0)
timeout (0.4.3)
turbo-rails (2.0.16)
tsort (0.2.0)
turbo-rails (2.0.20)
actionpack (>= 7.1.0)
railties (>= 7.1.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (3.1.5)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.3)
uri (1.0.4)
useragent (0.16.11)
webrick (1.9.1)
websocket (1.2.11)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ To apply syntax highlighting to rendered Action Text content, you need to call t
```javascript
import { Controller } from "@hotwired/stimulus"
import { highlightAll } from "lexxy"
// Or if you installed via a javascript bundler:
// import { highlightAll } from "@37signals/lexxy"

export default class extends Controller {
connect() {
Expand Down
Loading