Charlie Humphreys
2d30ac21a7
Update code based on PR feedback
...
#692
2021-11-11 17:08:05 -06:00
Charlie Humphreys
cac9e208df
Update editor.jsx to only clear marks that are not folds
...
#629
2021-11-10 10:27:32 -06:00
Trevor Buckner
47b99a24fb
Clear out unneeded style when editor is hidden in Metadata panel
2021-10-24 16:46:46 -04:00
Trevor Buckner
63d659ff49
use CodeMirror Documents
...
Instead of re-building the whole editor box with every tab switch, we just swap in and out CodeMirror "documents".
Maintains undo history, scroll position, highlight coloring, etc.
2021-10-19 23:49:11 -04:00
G.Ambatte
f33cd39300
Add conditional highlighting to Undo/Redo
2021-10-18 22:29:27 +13:00
G.Ambatte
8983960ca8
Add divider and tool active class
2021-10-18 22:29:27 +13:00
G.Ambatte
9dd885e7eb
Move Undo/Redo to SnippetBar
2021-10-18 22:29:26 +13:00
G.Ambatte
9bc52b412c
Initial pass at Editor Toolbar - Undo and Redo.
2021-10-18 22:29:25 +13:00
Gazook89
45101b7c09
Add Share to Reddit and Copy Share URL to Share Menu
2021-10-04 16:34:40 -05:00
Trevor Buckner
d9893e29ff
Update client/homebrew/editor/snippetbar/snippets/snippets.js
2021-09-30 21:06:25 -04:00
Sean Robertson
f69f73fcda
Revert "Update to use dedent in the same manner as other snippets"
...
This reverts commit b24c3527ca .
2021-10-01 13:03:08 +13:00
Sean Robertson
b24c3527ca
Update to use dedent in the same manner as other snippets
2021-10-01 12:44:28 +13:00
Sean Robertson
68f9b0d8ff
Fix QR code snippet when brew.shareId doesn't exist
2021-10-01 11:39:00 +13:00
Gazook89
39f745639f
remove gradient, set counter to start at '2'
2021-09-28 20:06:29 -05:00
Trevor Buckner
4e24f0dd4b
Merge branch 'master' into pr/1586
2021-09-21 23:37:21 -04:00
Trevor Buckner
eb7340434e
Revert dropcap background to background-image
...
Changing to just `background` undoes `background-clip` as well. This is more explicit.
2021-09-21 23:31:08 -04:00
Trevor Buckner
3c1ecf1292
Fix merge
2021-09-21 22:59:25 -04:00
Trevor Buckner
5f11607358
Merge branch 'master' into pr/1572
2021-09-21 22:53:49 -04:00
Gazook89
1c88eb80c0
update v3 ink friendly again to remove .pages from css selector
...
having `.pages` included in the selector did not match the selectivity in the base .less sheet. Oddly, it was working in the Edit Page, but not in the Print Page.
2021-09-15 16:30:30 -05:00
Gazook89
0de0c22e61
Update v3 ink-friendly snippet to reset drop-shadow rather than box-shadow
2021-09-15 16:14:14 -05:00
Gazook89
b8df5d083f
update v3 drop cap snippets to .page
2021-09-15 15:45:58 -05:00
Trevor Buckner
aff764d91c
Fix typo in snippet
2021-09-15 14:56:58 -04:00
Trevor Buckner
570c1a9b5f
Merge pull request #1680 from naturalcrit/AllowMonsterParagraphIndents
...
[v3] Better Paragraph formatting in Monster blocks
2021-09-15 14:02:51 -04:00
Trevor Buckner
ed6a0ef29b
Remove backticks from splitTable
2021-09-14 13:09:53 -04:00
Trevor Buckner
d1ffab5487
Update Monster styles and snippets.
2021-09-14 12:17:28 -04:00
Trevor Buckner
2192c91acb
Change .block min-width to width so users can resize position:absolute elements easier.
2021-09-13 22:40:36 -04:00
Trevor Buckner
82b9f825d5
Update class Features snippet to v3
...
Puts adjacent `term :: definition` s into the same `dl` block for easier spacing of sets of terms.
2021-09-11 21:52:37 -04:00
Gazook89
eee343c197
change tack, keep border on bottom but add page counter
2021-09-11 16:12:47 -05:00
Trevor Buckner
5d42196297
Give spellList "wide" class for consistency
2021-09-09 09:14:16 -04:00
Gazook89
ad5d7d2097
added dedents
2021-09-05 16:21:23 -05:00
Gazook89
3063337eb2
update v3 drop cap tweak to match new styling
...
and change v3 drop cap to use only `background` rather than `background-image` so that the tweak snippet can easily change between gradient and just a regular color.
and re-order table menu so that the regular table snippet is at top.
2021-09-05 15:40:08 -05:00
Gazook89
cf5a1cee24
Merge remote-tracking branch 'upstream/master' into Style-Editor-Menu-and-comments
2021-09-05 15:11:58 -05:00
Trevor Buckner
0610c9fe98
fix injecting images putting the cursor midway into the next line of text.
2021-09-01 14:54:52 -04:00
Trevor Buckner
1770323690
Remove standalone snippet; include in classTable snippets
2021-09-01 13:37:07 -04:00
Trevor Buckner
59fd2454a4
Make images local, change snippet to allow color instead of hue-rotate
2021-08-31 23:57:08 -04:00
Trevor Buckner
1abd151c67
Merge branch 'master' into pr/1549
2021-08-31 16:45:14 -04:00
Trevor Buckner
2f9c08ac49
Merge pull request #1544 from Gazook89/ClassTable-Revisions
...
Class table revisions - 1/3 Table, minor fixes
2021-08-31 16:42:28 -04:00
Trevor Buckner
f5057119da
Shrink tables width
2021-08-31 16:39:13 -04:00
Trevor Buckner
1a71ba0eb2
Force \page on V3 to be alone on line.
2021-08-31 12:08:31 -04:00
Trevor Buckner
e14c8c5e91
Lint
2021-08-31 12:03:59 -04:00
Trevor Buckner
13ba5ebcc8
Fix snippets crashing in empty brew
...
If this.props.brew.text is an empty string, it will evaluate to `false` and, but since `isStyle()` is also false, `text` is just undefined.
2021-08-31 11:56:48 -04:00
Trevor Buckner
539b52ecbd
Merge pull request #1594 from G-Ambatte/fixHandleInject-#1593
...
Handle `brew.style` being `undefined` when injecting snippets.
2021-08-27 19:35:05 -04:00
G.Ambatte
04b2421793
Update client/homebrew/editor/editor.jsx
...
Co-authored-by: Trevor Buckner <calculuschild@gmail.com >
2021-08-28 11:03:47 +12:00
Trevor Buckner
e5cfa98bbd
Shorten Features column to match shorter names
2021-08-27 12:30:57 -04:00
Trevor Buckner
9d5130154b
Remixed Feature names to be shorter.
2021-08-27 12:29:11 -04:00
Gazook89
b4825e085e
fix table snippet spacing in editor
2021-08-27 10:40:40 -05:00
Trevor Buckner
4ce915100b
Merge pull request #1591 from Gazook89/fix-ink-friendly-snippet
...
minor fix for ink-friendly legacy snippet
2021-08-27 09:36:47 -04:00
Gazook89
dc65980dcb
pull drawSlots out of individual functions
2021-08-26 12:51:36 -05:00
G.Ambatte
31c348baff
Handle brew.style being undefined when inject snippets.
2021-08-21 11:37:01 +12:00
Gazook89
043ade6e34
minor fix for ink-friendly legacy snippet
2021-08-20 10:36:28 -05:00