Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1395 commits
Select commit Hold shift + click to select a range
fd71c6b
uncomment blur
juliaroldi Mar 6, 2023
e0be6ec
Fix Arrow Keys + Delimiter bug (#1620)
BryanValverdeU Mar 6, 2023
d21d397
Add delimiters To InlineReadonly Entities on EditorReady and Paste (#…
BryanValverdeU Mar 7, 2023
cb907f7
Reuse Content Model (#1610)
JiuqingSong Mar 8, 2023
b48ae41
image rotation and tests
juliaroldi Mar 8, 2023
4e6f012
Merge branch 'master' into u/juliaroldi/simulate-rotation
juliaroldi Mar 8, 2023
3dd4bc4
comment
juliaroldi Mar 9, 2023
6bd4535
Handle Enter in a Delimiter (#1622)
BryanValverdeU Mar 9, 2023
542eb7f
add check and do not sanitize Notes protocol (#1626)
charlxu Mar 9, 2023
ebc4cd5
Content Model: Fix fidelity issue of list (#1624)
JiuqingSong Mar 9, 2023
227331d
Content Model: Fix format change while editing (#1625)
JiuqingSong Mar 9, 2023
152595d
Improve Movement Between Delimiters (#1628)
BryanValverdeU Mar 10, 2023
a37dc6c
Merge branch 'master' into u/juliaroldi/simulate-rotation
juliaroldi Mar 10, 2023
2aa3190
WIP
juliaroldi Mar 10, 2023
183cd12
merge rotate and flip
juliaroldi Mar 10, 2023
796f427
Improve deletion of entities (#1630)
BryanValverdeU Mar 10, 2023
f065f72
flip and rotate
juliaroldi Mar 10, 2023
3390a3c
Handle Selection Not Collapsed for delimiters (#1629)
BryanValverdeU Mar 10, 2023
95fd3ec
comment
juliaroldi Mar 10, 2023
7dfea29
Check delimiter classes when adding Delimiters to a new Entity #1632
BryanValverdeU Mar 10, 2023
6114e7e
fix flips
juliaroldi Mar 13, 2023
605c26b
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi Mar 13, 2023
40d8e2b
fix hyperlink regression
juliaroldi Mar 13, 2023
5fea7a2
Merge pull request #1634 from microsoft/u/juliaroldi/picture-in-hyper…
juliaroldi Mar 13, 2023
8018908
Merge branch 'master' into u/juliaroldi/flip-image-2
juliaroldi Mar 13, 2023
6521f2d
Merge pull request #1633 from microsoft/u/juliaroldi/flip-image-2
juliaroldi Mar 13, 2023
f2b51c4
remove max-width from insertSrc
juliaroldi Mar 14, 2023
8994f15
Merge pull request #1638 from microsoft/u/juliaroldi/crop-issues
juliaroldi Mar 15, 2023
aad07a7
Add a parameter to enable/disable handling keyboard editing from Cont…
JiuqingSong Mar 15, 2023
08fefd1
Fix Tab/ShiftTab indenting for lists on Mac (#1645)
ianeli1 Mar 16, 2023
b8c592c
Do not had BR when pasting two LI blocks. (#1646)
BryanValverdeU Mar 16, 2023
4de4959
squash
juliaroldi Mar 17, 2023
4ea04ec
conflicts
juliaroldi Mar 17, 2023
3c77912
Enter on Delimiter change and Add classes to sanitizing option (#1644)
BryanValverdeU Mar 17, 2023
2dfc6e9
Strict Mode for Format Utils (#1647)
BryanValverdeU Mar 17, 2023
cd84c9b
Strict Mode for Table Folder in API Package (#1648)
BryanValverdeU Mar 17, 2023
b4d4550
Content Model: Cache table step 1 (#1649)
JiuqingSong Mar 17, 2023
3d29eed
refactor
juliaroldi Mar 17, 2023
a6cc71c
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi Mar 17, 2023
2669067
fix test
juliaroldi Mar 20, 2023
3200651
fix fireforx test
juliaroldi Mar 20, 2023
cd1c8f8
Content Model: Cache table step 2 (#1651)
JiuqingSong Mar 20, 2023
56bb98d
remove handler
juliaroldi Mar 20, 2023
d9cf826
fix conflicts
juliaroldi Mar 20, 2023
9e9c57a
remove change
juliaroldi Mar 21, 2023
527cc0a
Merge pull request #1650 from microsoft/u/juliaroldi/set-alignment-co…
juliaroldi Mar 21, 2023
ddf7852
add image format to get format state
juliaroldi Mar 21, 2023
c7d7e30
add image format to get format state
juliaroldi Mar 21, 2023
c96c788
add image format to get format state
juliaroldi Mar 21, 2023
d8c3469
add content model format state
juliaroldi Mar 22, 2023
7e4c912
only one selected image
juliaroldi Mar 22, 2023
5ff7581
Merge pull request #1656 from microsoft/u/juliaroldi/image-format-con…
juliaroldi Mar 22, 2023
dbb9a9e
Support default format in Content Model (#1655)
JiuqingSong Mar 23, 2023
3b88d6b
Fix Movement Between Entity Delimiter issue (#1640)
BryanValverdeU Mar 24, 2023
806f203
Fixed plus sign position on table handle (#1657)
Andres-CT98 Mar 24, 2023
e9b3626
Fix for pasting an Excel Online table inside RoosterJS table (#1659)
Andres-CT98 Mar 27, 2023
50b599b
Content Model: Handle Delete and Backspace (#1660)
JiuqingSong Mar 28, 2023
8df3228
Fix Font controls became blank after multiple clicks (#1674)
JiuqingSong Mar 28, 2023
1251fe6
Enable Strict Mode in packages\roosterjs-editor-api\lib\format (#1678)
BryanValverdeU Mar 28, 2023
f106680
Support "No Color" for table cell shade (#1679)
JiuqingSong Mar 29, 2023
a134ce3
Strict ContentEdit plugin (#1671)
ianeli1 Mar 29, 2023
54b61d1
ContentModel FormatContainer step 1 (#1661) (#1667)
JiuqingSong Mar 29, 2023
f90f757
ContentModel FormatContainer step 2 (#1661) (#1668)
JiuqingSong Mar 31, 2023
d8354cf
strict mode in paste
juliaroldi Mar 31, 2023
4e26c68
Merge branch 'master' into u/juliaroldi/strict-mode-paste
juliaroldi Mar 31, 2023
3e8f25e
Merge pull request #1685 from microsoft/u/juliaroldi/strict-mode-paste
juliaroldi Mar 31, 2023
0c8bf82
Revert "Strict mode in paste plugin"
juliaroldi Mar 31, 2023
70180a8
Merge pull request #1686 from microsoft/revert-1685-u/juliaroldi/stri…
juliaroldi Mar 31, 2023
5508d83
test
juliaroldi Mar 31, 2023
b5d7388
Code Content Edit Features (#1669)
ianeli1 Mar 31, 2023
0f7702b
Content Model: Merge continuous undo snapshots (#1663) (#1672)
JiuqingSong Apr 1, 2023
ceed864
Content Model: Fix 197384 (#1681)
JiuqingSong Apr 1, 2023
1218085
Content Model Shadow Edit Step 2: Split editor (#1693)
JiuqingSong Apr 3, 2023
793c21b
Content Model Shadow Edit Step 2: Refactor Editor class (#1694)
JiuqingSong Apr 3, 2023
f834e90
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi Apr 3, 2023
a07a238
fix strict mode
juliaroldi Apr 3, 2023
e558111
uppercase
juliaroldi Apr 3, 2023
62ae06f
Content Model Shadow Edit Step3: Add API to clone model (#1695)
JiuqingSong Apr 3, 2023
f204ecc
Content Model Shadow Edit Step 4: Finally support shadow edit with Co…
JiuqingSong Apr 4, 2023
ded55b2
Assert table cell exists before doing anything (#1701)
ianeli1 Apr 4, 2023
a70fd40
fixes
juliaroldi Apr 4, 2023
4faa6ab
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi Apr 4, 2023
e72e07c
Merge pull request #1687 from microsoft/u/juliaroldi/strict-mode-paste
juliaroldi Apr 4, 2023
28a5ee7
Content Model: Improve the behavior of deleting general element (#1680)
JiuqingSong Apr 4, 2023
a19e72a
fix image resize
juliaroldi Apr 4, 2023
f9e3cec
Fix #1683: Do not apply text and background color when not necessary …
JiuqingSong Apr 5, 2023
06b9ca4
remove max-width
juliaroldi Apr 5, 2023
5d83807
add test
juliaroldi Apr 5, 2023
8f720d7
Merge pull request #1707 from microsoft/u/juliaroldi/remove-max-width…
juliaroldi Apr 5, 2023
c8d268f
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi Apr 5, 2023
e050127
fix test
juliaroldi Apr 5, 2023
7e2d721
Merge pull request #1704 from microsoft/u/juliaroldi/image-resize-issue
juliaroldi Apr 5, 2023
08aa3e8
Split IndentWithTab and OutdentWhenShiftTab to be able to disable the…
BryanValverdeU Apr 5, 2023
c0c2414
return null
juliaroldi Apr 6, 2023
1b22044
paste as image
juliaroldi Apr 6, 2023
95b1b5e
fix firefox test
juliaroldi Apr 6, 2023
566a1d3
Merge pull request #1709 from microsoft/u/juliaroldi/unexpected-error…
juliaroldi Apr 6, 2023
9be358e
Merge branch 'master' into u/juliaroldi/paste-as-image
juliaroldi Apr 6, 2023
d833fb2
Merge pull request #1710 from microsoft/u/juliaroldi/paste-as-image
juliaroldi Apr 6, 2023
ec00a95
add tests for image edit
juliaroldi Apr 10, 2023
b7ccab0
fix build
juliaroldi Apr 10, 2023
829f7b6
Move getPasteSource from Plugins to Dom (#1708)
BryanValverdeU Apr 11, 2023
38494ad
Merge branch 'master' into u/juliaroldi/image-edit-api-test
juliaroldi Apr 11, 2023
00c33f2
Merge pull request #1714 from microsoft/u/juliaroldi/image-edit-api-test
juliaroldi Apr 11, 2023
8a296eb
Content Model minor fix: Change parameter type (#1720)
JiuqingSong Apr 14, 2023
84c8bd5
Content Model: Fix #1702 Hyperlinking a text doesnt trigger ChangeSou…
JiuqingSong Apr 14, 2023
c18048f
Fix #1713 (#1718)
JiuqingSong Apr 14, 2023
6bb2bc5
Fix Uncaught TypeError: Cannot read properties of undefined (reading …
BryanValverdeU Apr 17, 2023
65b7297
Decouple logic from Table Cell Selection into smaller files. (#1722)
BryanValverdeU Apr 17, 2023
4b96727
Allow Content Model API to remove image border (#1733)
ianeli1 Apr 18, 2023
e28fef1
Content Model: Fix #1684 (#1730)
JiuqingSong Apr 18, 2023
077d8da
Content Model: Improve edit plugin (#1728)
JiuqingSong Apr 18, 2023
e12014e
Content Model fidelity 1: Support lineHeight in list (#1731)
JiuqingSong Apr 19, 2023
86ad523
[1/3] Enable Strict mode in TableCellSelection Utils + Plugin (#1735)
BryanValverdeU Apr 20, 2023
070bf07
Content Model fidelity improvement 2: Support size in divider (#1732)
JiuqingSong Apr 20, 2023
b0a6720
Content Model: Improve default format state (#1743)
JiuqingSong Apr 21, 2023
c1d88b3
Add check for empty selectors, and empty CSS rule insertion (#1744)
Andres-CT98 Apr 21, 2023
eabe2f6
Content Model: Fix #1738 delete space issue (#1740)
JiuqingSong Apr 22, 2023
fc7bea0
Make additionalTagReplacements allow `null` value type. (#1745)
rickygao Apr 24, 2023
dec63c9
[2/3] Enable Strict mode on KeyDown Handler (#1736)
BryanValverdeU Apr 25, 2023
0063e69
[3/3] Enable Strict mode in Mouse Down Handler + Add Strict mode file…
BryanValverdeU Apr 25, 2023
cfb8d8b
Revert "Paste as image feature" - convertPastedContentFromExcel (#1749)
Andres-CT98 Apr 25, 2023
fdd91ee
Leverage Content Model to insert the Pasted content from clipboard (#…
BryanValverdeU Apr 25, 2023
e1dee30
Don't return focus to editor when blur on image (#1742)
ianeli1 Apr 27, 2023
38b93aa
Content Model fidelity improvement 3: Block format (#1751)
JiuqingSong Apr 27, 2023
98e3085
Add a experimental feature for paste with ContentModel #1758
BryanValverdeU Apr 27, 2023
5093410
Content Model fidelity improvement 4: CENTER tag and alignment (#1753)
JiuqingSong Apr 27, 2023
ecbc2f0
Demo site: Show a visible border when hover on content model in demo …
JiuqingSong Apr 27, 2023
78d871e
Content Model: Support letter-spacing style (#1757)
JiuqingSong May 1, 2023
5bdbf89
Fix #204225 (#1768)
JiuqingSong May 2, 2023
9fb1806
Content Model Fidelity improvement 6: list and text (#1759)
JiuqingSong May 2, 2023
f7784a5
Content Model Fidelity improvement 7: Table (#1762)
JiuqingSong May 3, 2023
629a655
Graduate feature ListItemAlignment (#1765)
JiuqingSong May 3, 2023
8edb8a2
Content Model Fidelity improvement 8: Support list-style-position (#1…
JiuqingSong May 3, 2023
3b45f2d
fix list chain
juliaroldi May 3, 2023
f59be3f
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi May 3, 2023
085c446
fix list style
juliaroldi May 3, 2023
0d17748
Merge pull request #1771 from microsoft/u/juliaroldi/fix-list-chain
juliaroldi May 4, 2023
428a060
remove html excel attributes
juliaroldi May 4, 2023
afd2f41
Content Model Fidelity improvement 9: Change the way handle display:b…
JiuqingSong May 4, 2023
fbb467a
Content Model: Fix editing with default format issue (#1773)
JiuqingSong May 4, 2023
97b978f
Content Model: Fix #1774 (#1775)
JiuqingSong May 5, 2023
14b731c
Handle Word Desktop Paste content (#1717)
BryanValverdeU May 5, 2023
57cb5ba
add paste type
juliaroldi May 5, 2023
dfc4984
refactor
juliaroldi May 5, 2023
808c107
refactor
juliaroldi May 5, 2023
793859b
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi May 5, 2023
fac0b16
Content Model Fidelity improvement 10: Keep improving "align=center" …
JiuqingSong May 5, 2023
e560c37
Content Model Fidelity improvement 11: Multiple minor improvements (#…
JiuqingSong May 6, 2023
d766066
remove empty space
juliaroldi May 8, 2023
516bb3a
Merge branch 'master' into u/juliaroldi/paste-image-excel
juliaroldi May 8, 2023
c640a37
Merge pull request #1777 from microsoft/u/juliaroldi/paste-image-excel
juliaroldi May 8, 2023
b1a4e59
Content Model: Refactor table, prepare for next step of fidelity impr…
JiuqingSong May 8, 2023
a43ae8e
Content Model Fidelity improvement 12: parse and save format from TR …
JiuqingSong May 9, 2023
b0053f3
Graduate VariableBasedDarkColor (#1767)
JiuqingSong May 9, 2023
7f4f182
Add support for Wac Components Paste (#1782)
BryanValverdeU May 10, 2023
15dedeb
Content Model Edit: Improve undo (#1787)
JiuqingSong May 10, 2023
188679b
Fix TypeError: Cannot read properties of null (reading 'getInlineElem…
BryanValverdeU May 11, 2023
6b35911
Support `onenote:` and `mailto:` protocols when pasting links (#1794)
BryanValverdeU May 11, 2023
cf1a4fd
Fix #1769: Allow focus after entity when insert a new entity (#1792)
JiuqingSong May 11, 2023
02636f9
Content Model: Only optimize paragraph (#1793)
JiuqingSong May 11, 2023
50c4271
Content Model: Treat table as entity (#1790)
JiuqingSong May 11, 2023
40411b6
Fix resize handles (#1801)
juliaroldi May 16, 2023
566b5d1
Content Model: Fix #1797 Delete emoji using Content Model (#1799)
JiuqingSong May 17, 2023
587abcd
Fix split cell shading for Content Model (#1808)
Andres-CT98 May 19, 2023
9deb034
Fix 208387 (#1806)
JiuqingSong May 21, 2023
8211536
Fix Ribbon props (#1807)
rickygao May 22, 2023
db68380
Fix dialog header can't be closed pressing esc key (#1811)
zoeliang2023 May 22, 2023
737d670
Add Copy Paste Plugin using content model (#1798)
BryanValverdeU May 22, 2023
8a861d1
Content Model: Merge format when merge model (#1813)
JiuqingSong May 23, 2023
e0c3150
Fix Incorrect Entity removal (#1817)
BryanValverdeU May 23, 2023
66dd803
Content Model: Move default format back to DIV (#1819)
JiuqingSong May 23, 2023
09f059b
set soft outdent to false
juliaroldi May 24, 2023
fe8a008
ignore the dummy items
juliaroldi May 24, 2023
ea99b92
Add Excel and PPT Handle to plugin (#1810)
BryanValverdeU May 24, 2023
c7fb40d
Merge branch 'master' into u/juliaroldi/fix-backspace
JiuqingSong May 24, 2023
d8ca003
Content Model: Do not hard code default format (#1822)
JiuqingSong May 24, 2023
229a7ae
Merge branch 'master' into u/juliaroldi/fix-backspace
juliaroldi May 25, 2023
df20bf5
Merge pull request #1821 from microsoft/u/juliaroldi/fix-backspace
juliaroldi May 25, 2023
7f77d38
Content Model: Support Ctrl+Delete/Backspace (Step 1 of 4): Reorganiz…
JiuqingSong May 25, 2023
f76cfb8
add context menu support to image selection
juliaroldi May 25, 2023
54a11a7
do not reselect and remove mouse up event handler
juliaroldi May 25, 2023
4db3ec0
fix undosnapshot names
juliaroldi May 25, 2023
3864ca4
improve code
juliaroldi May 25, 2023
4ddf805
remove check
juliaroldi May 25, 2023
4a4417a
Strict mode for Picker Plugin (#1830)
Andres-CT98 May 25, 2023
0be7a8a
Merge branch 'master' into u/juliaroldi/image-selection-context-menu
juliaroldi May 25, 2023
a69181b
Merge pull request #1831 from microsoft/u/juliaroldi/image-selection-…
juliaroldi May 25, 2023
58b3ee0
Content Model: Support Ctrl+Delete/Backspace (Step 2 of 4): Make onDe…
JiuqingSong May 25, 2023
f0f147d
Content Model: Support Ctrl+Delete/Backspace (Step 3 of 4): Refactor …
JiuqingSong May 25, 2023
1be0d27
Fix Picker Plugin issue (#1832)
Andres-CT98 May 25, 2023
3431c34
Content Model: Support Ctrl+Delete/Backspace (Step 4 of 4): Finally s…
JiuqingSong May 26, 2023
0bcd6a5
Clone entity when performing a copy (#1825)
BryanValverdeU May 26, 2023
9366b85
Fix some paste issues from Word Desktop and Word Online #1835
BryanValverdeU May 26, 2023
42376a7
Content Model: Delete issues fix (#1834)
JiuqingSong May 26, 2023
f933a6d
Always disable cache element on paste #1836
BryanValverdeU May 26, 2023
769fef6
Add recent border image fix to new plugin (#1829)
BryanValverdeU May 26, 2023
6bca07b
Add Size Format Handler to tables (#1838)
BryanValverdeU May 30, 2023
35f011d
Remove Table temp elements from Word Online (#1842)
BryanValverdeU May 30, 2023
2649c36
Remove the support of ShadowDOM entity (#1841)
JiuqingSong May 31, 2023
cc37b6d
Undo with entity (#1791)
JiuqingSong May 31, 2023
0652ba3
Content Model: Improve link and heading behavior (#1812)
JiuqingSong May 31, 2023
acf2bd7
Make roosterjs work with nodejs 17+ (#1849)
JiuqingSong May 31, 2023
e02f0c9
Content Model: Fix #1847 (#1848)
JiuqingSong May 31, 2023
031964a
Fix config for test:coverage (#1851)
JiuqingSong May 31, 2023
3e924ed
Try fix #1816 (#1846)
JiuqingSong Jun 1, 2023
bf1918b
Add new param (#1853)
ianeli1 Jun 1, 2023
a5b5574
Content Model: Maintain selection on empty line (#1814)
JiuqingSong Jun 1, 2023
aa09079
Content Model: Fix #1802 Default format is not applied when type in a…
JiuqingSong Jun 2, 2023
b920875
Fix list bug when pasting from Word Online (#1855)
BryanValverdeU Jun 2, 2023
7a46adf
Make paste with content model a public api instead of a Editor Class …
BryanValverdeU Jun 2, 2023
8102e38
Content Model: Fix #1839: Fix toggleBold on heading text (#1845)
JiuqingSong Jun 2, 2023
92ce5ea
Fix #1322: Copying some table structure transform the table to single…
BryanValverdeU Jun 2, 2023
c5064a5
Improve test running (#1854)
JiuqingSong Jun 2, 2023
a58dc54
Use default format for empty line below entity (#1858)
JiuqingSong Jun 2, 2023
06d715c
Fix bug when pasting from Outlook Win 32 to Rooster (#1857)
BryanValverdeU Jun 2, 2023
7fa0e34
Rename files and test files (#1856)
BryanValverdeU Jun 5, 2023
6679dff
add null check
juliaroldi Jun 5, 2023
37694c5
Add data to the ContentChange event when pasting (#1862)
BryanValverdeU Jun 6, 2023
bcb487b
Update ContentModelCopyPaste Core Plugin state initialization. (#1867)
BryanValverdeU Jun 7, 2023
6f411ab
Fix table inserter for merged vertical cells (#1869)
Andres-CT98 Jun 8, 2023
c823c2b
use Import Helpers to reduce pack size (#1865)
JiuqingSong Jun 8, 2023
5c3ae1e
Dismiss TableEditors when mouse is moved out of the editor. (#1863)
BryanValverdeU Jun 9, 2023
101cc94
Content Model: Let browser handle delete/backspace event for normal c…
JiuqingSong Jun 9, 2023
ef1a5c0
Content Model: Fix focus issue again (#1872)
JiuqingSong Jun 9, 2023
aa15bdb
Content Model: Patch for #1870 (#1873)
JiuqingSong Jun 12, 2023
6cfb495
Fix some inconsistencies when pasting from Word (#1875)
BryanValverdeU Jun 12, 2023
7c54ff1
Add back onExternalContentTransform (#1874)
JiuqingSong Jun 12, 2023
d3341a6
Content Model: Ignore empty paragraph when turn on list (#1868)
JiuqingSong Jun 13, 2023
e4791e5
Content Model: Fix header level issue (#1876)
JiuqingSong Jun 13, 2023
864d79c
Fix Table Inserter Color in Dark Mode #1877
BryanValverdeU Jun 13, 2023
58e57d9
Merge Format when pasting. (#1866)
BryanValverdeU Jun 13, 2023
92fb024
Merge branch 'master' of https://github.com/microsoft/roosterjs into …
juliaroldi Jun 13, 2023
b689451
add darkColorHandler to applyFormat
juliaroldi Jun 13, 2023
71411fb
remove changes
juliaroldi Jun 13, 2023
b8b7255
Try fix 208247 (#1878)
JiuqingSong Jun 14, 2023
2c44dc5
Content Model: Fix #209223 (#1879)
JiuqingSong Jun 14, 2023
7eb6831
Merge branch 'master' into u/juliaroldi/fix-table-background-color
juliaroldi Jun 14, 2023
2d07bb4
fix comments
juliaroldi Jun 14, 2023
9c726c1
fix comments
juliaroldi Jun 14, 2023
c7c0b96
Enable strict mode for all dev code (#1883)
JiuqingSong Jun 14, 2023
73b9f18
Merge branch 'master' into u/juliaroldi/fix-table-background-color
juliaroldi Jun 14, 2023
385d19d
Merge pull request #1881 from microsoft/u/juliaroldi/fix-table-backgr…
juliaroldi Jun 14, 2023
6f6931e
Split demo site into two parts (#1880)
JiuqingSong Jun 14, 2023
1c4d491
Remove block background color on Merge Format after Paste (#1882)
BryanValverdeU Jun 15, 2023
5b0c2b2
Fix #210328 (#1885)
JiuqingSong Jun 15, 2023
998d844
Content Model: Fix #209891 (#1886)
JiuqingSong Jun 16, 2023
36c6392
Content Model: Fix #1887 (#1889)
JiuqingSong Jun 16, 2023
656a56a
Content Model: Fix #1888 (#1891)
JiuqingSong Jun 16, 2023
1d65814
Add TableLayout Format Handler (#1892)
BryanValverdeU Jun 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Feature Title:

Example: Delete multiple rows.

## Feature description:

[Please detail the feature suggestion and explain why it's needed]

Example: Select and delete multiple rows in a table. Since is possible to select multiple rows, it's a benefit to the user to add a table operation to delete multiple rows.
Then there is no need to delete each row at a time.

## Expected behavior:

[Describe the feature behavior!]

Example:

- Insert a table
- Select multiple rows
- Click delete
- All the selected rows are deleted

## Suggest how this feature can be developed

[If it's possible, describe with technical details how this feature can be developed]

Example: Adapt the Delete Row operation to recognize the selection of cells in the VTable class and edit api.
7 changes: 2 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 'v14.18.2'
node-version: 'v18.16.0'

- name: Install dependencies
run: npm install
run: yarn

- name: Build
run: npm run-script build:ci
Expand All @@ -37,6 +37,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/deploy

- name: Publish
run: node tools/build.js publish --token ${{ secrets.NPM_TOKEN }}
24 changes: 9 additions & 15 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: Build and Test
on:
push:
branches-ignore:
- master
pull_request:
branches-ignore:
- master
on: [push, pull_request]

jobs:
build:
Expand All @@ -19,10 +13,10 @@ jobs:
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 'v14.18.2'
node-version: 'v18.16.0'

- name: Install dependencies
run: npm install
run: yarn

- name: Build
run: npm run-script build:ci
Expand All @@ -37,18 +31,18 @@ jobs:
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 'v14.18.2'
node-version: 'v18.16.0'

- name: Install dependencies
run: npm install
run: yarn

- name: Install Chrome
uses: browser-actions/setup-chrome@latest

- name: Test with Chrome
uses: GabrielBB/xvfb-action@v1
with:
run: npm run-script test:chrome
run: npm run-script test
test-on-firefox:
runs-on: ubuntu-latest
steps:
Expand All @@ -60,15 +54,15 @@ jobs:
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 'v14.18.2'
node-version: 'v18.16.0'

- name: Install dependencies
run: npm install
run: yarn

- name: Install Firefox
uses: browser-actions/setup-firefox@latest

- name: Test with Firefox
uses: GabrielBB/xvfb-action@v1
with:
run: npm run-script test
run: npm run-script test:firefox
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish
on:
push:
branches:
- release
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: release
persist-credentials: false

- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 'v18.16.0'

- name: Install dependencies
run: yarn

- name: Build
run: npm run-script build:ci

- name: Publish
run: node tools/build.js publish --token ${{ secrets.NPM_TOKEN }}
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ node_modules/
# Distribution
dist/

#Mac files
.DS_Store
# Mac files
.DS_Store

# Temp files
packages/roosterjs-editor-types/lib/compatibleEnum/
38 changes: 38 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,44 @@
"args": ["start", "--chrome", "--components", "${fileBasenameNoExtension}"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug All Unit Tests",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": ["start", "--no-single-run"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug All Unit Tests (Chrome)",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": ["start", "--chrome", "--no-single-run"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug current unit test file",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": ["start", "--components", "${fileBasenameNoExtension}", "--no-single-run"],
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "Debug current unit test file (Chrome)",
"program": "${workspaceFolder}/node_modules/karma/bin/karma",
"args": [
"start",
"--chrome",
"--components",
"${fileBasenameNoExtension}",
"--no-single-run"
],
"console": "integratedTerminal"
},
{
"type": "chrome",
"request": "launch",
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"datetime",
"dompurify",
"endregion",
"fluentui",
"Hilite",
"inputevent",
"KHTML",
Expand Down Expand Up @@ -72,6 +73,7 @@
"textinput",
"Toggleable",
"toposort",
"unlocalized",
"usemap",
"valign",
"vlist",
Expand Down
39 changes: 15 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Please see [here](https://github.com/microsoft/roosterjs/wiki/RoosterJs-8).

### Packages

Rooster contains 6 packages.
Rooster contains 6 basic packages.

1. [roosterjs](https://microsoft.github.io/roosterjs/docs/modules/roosterjs.html):
A facade of all Rooster code for those who want a quick start. Use the
Expand All @@ -44,6 +44,19 @@ Rooster contains 6 packages.
6. [roosterjs-editor-types](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_types.html):
Defines public interfaces and enumerations.

There are also some extension packages to provide additional functionalities.

1. [roosterjs-color-utils](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_color_utils.html):
Provide color transformation utility to make editor work under dark mode.

2. [roosterjs-react](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_react.html):
Provide a React wrapper of roosterjs so it can be easily used with React.

3. [roosterjs-editor-types-compatible](https://microsoft.github.io/roosterjs/docs/modules/roosterjs_editor_types_compatible.html):
Provide types that are compatible with isolatedModules mode. When using isolatedModules mode,
"const enum" will not work correctly, this package provides enums with prefix "Compatible" in
their names and they have the same value with const enums in roosterjs-editor-types package

### APIs

Rooster provides DOM level APIs (in `roosterjs-editor-dom`), core APIs (in `roosterjs-editor-core`), and formatting APIs
Expand Down Expand Up @@ -99,10 +112,6 @@ Install via NPM or Yarn:

`yarn add roosterjs`

or

`npm install roosterjs --save`

You can also install sub packages separately:

`yarn add roosterjs-editor-core`
Expand All @@ -111,22 +120,10 @@ You can also install sub packages separately:

`...`

or

`npm install roosterjs-editor-core --save`

`npm install roosterjs-editor-api --save`

`...`

In order to run the code below, you may also need to install [webpack](https://webpack.js.org/):

`yarn add webpack -g`

or

`npm install webpack -g`

## Usage

### A quick start
Expand Down Expand Up @@ -219,12 +216,6 @@ To build the sample site code yourself, follow these instructions:
yarn
```

or

```cmd
npm install
```

2. Build the source code, and start the sample editor:

```
Expand Down Expand Up @@ -298,7 +289,7 @@ Currently we have very few external dependencies. Before adding any new dependen
A dependency package under MIT license is good to be used for RoosterJs. For other licenses, we need
to review and see if we can take it as a dependency.

If you still feel a new dependency is required after checking these 3 questions, we can review it and
If you still feel a new dependency is required after checking these questions, we can review it and
finally decide whether we should add the new dependency.

For build time dependencies, it is more flexable to add new dependencies since it won't increase runtime
Expand Down
41 changes: 41 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.6 BLOCK -->

## Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](<https://docs.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)>), please report it to us as described below.

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).

If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/msrc/pgp-key-msrc).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.

## Preferred Languages

We prefer all communications to be in English.

## Policy

Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/msrc/cvd).

<!-- END MICROSOFT SECURITY.MD BLOCK -->
Binary file added assets/design-charts/BackwardDeleteWord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/design-charts/ForwardDeleteWord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>RoosterJs Demo Page</title>
<title>RoosterJs Demo Site</title>
<style>
#mainPane {
position: absolute;
Expand All @@ -18,9 +18,11 @@
</head>
<body>
<div id="mainPane"></div>
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.14.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fluentui-react/8.60.1/fluentui-react.min.js"></script>
<script src="rooster-min.js"></script>
<script src="rooster-react-min.js"></script>
<script src="demo.js"></script>
</body>
</html>
9 changes: 6 additions & 3 deletions demo/scripts/controls/BuildInPluginState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ export interface BuildInPluginList {
tableCellSelection: boolean;
tableResize: boolean;
customReplace: boolean;
pickerPlugin: boolean;
listEditMenu: boolean;
imageEditMenu: boolean;
tableEditMenu: boolean;
contextMenu: boolean;
autoFormat: boolean;
contentModelPaste: boolean;
}

export default interface BuildInPluginState {
Expand All @@ -27,10 +31,9 @@ export default interface BuildInPluginState {
defaultFormat: DefaultFormat;
linkTitle: string;
watermarkText: string;
showRibbon: boolean;
supportDarkMode: boolean;
experimentalFeatures: ExperimentalFeatures[];
forcePreserveRatio: boolean;
isRtl: boolean;
}

export interface BuildInPluginProps extends BuildInPluginState, SidePaneElementProps {}
Loading