Skip to content

Commit

Permalink
Merge pull request #681 from art-institute-of-chicago/feature/supersc…
Browse files Browse the repository at this point in the history
…ript-in-wysiwyg-editor

Roll back WYSIWYG editor to Quill JS in places that provide the `superscript` option [WEB-2984]
  • Loading branch information
nikhiltri authored Jan 31, 2025
2 parents d77ab5b + c856a9e commit 402c66d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/views/twill/blocks/paragraph.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
name='paragraph'
label='Paragraph'
note="Wrap footnote text with [ref]...[/ref]"
:toolbar-options="[ [ 'header' => [ 2, 3, 4 ] ], 'bold', 'italic', 'underline', 'strike', 'link', 'ordered', 'bullet', 'superscript' ]"
type="quill" {{-- Twill's use of the Tip Tap editor doesn't support the 'superscript' toolbar option out of the box. So use quill until it does --}}
:toolbar-options="[ ['header' => 2], ['header' => 3], ['header' => 4], 'bold', 'italic', 'underline', 'strike', 'link', 'list-ordered', 'list-unordered', ['script' => 'super'] ]"
/>
3 changes: 2 additions & 1 deletion resources/views/twill/blocks/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
name='table_caption'
label='Caption'
note='Optional'
:toolbar-options="[ ['header' => 3], 'bold', 'italic', 'underline', 'strike', 'link', 'list-ordered', 'list-unordered', 'superscript' ]"
type="quill" {{-- Twill's use of the Tip Tap editor doesn't support the 'superscript' toolbar option out of the box. So use quill until it does --}}
:toolbar-options="[ ['header' => 3], 'bold', 'italic', 'underline', 'strike', 'link', 'list-ordered', 'list-unordered', ['script' => 'super'] ]"
/>

<x-twill::checkbox
Expand Down

0 comments on commit 402c66d

Please sign in to comment.