Aleksander Nowodzinski
|
28c6b097c8
Allowed leaving the code block by pressing enter in an empty line at the beginning of the block.
|
před 6 roky |
Aleksander Nowodzinski
|
a21c919b98
Added missing dependencies to package.json.
|
před 6 roky |
Aleksander Nowodzinski
|
ee42b3530e
Removed the dotAll flag from the extractDataFromCodeElement() regex due to errors in Firefox (not supported).
|
před 6 roky |
Aleksander Nowodzinski
|
c126c4f6a6
Docs and code refactoring.
|
před 6 roky |
Aleksander Nowodzinski
|
28104ad080
Enabled code block indent and outdent commands in the editing. Defined config.codeBlock.indentSequence.
|
před 6 roky |
Aleksander Nowodzinski
|
881b953c95
Created the IndentCodeBlockCommand.
|
před 6 roky |
Aleksander Nowodzinski
|
1604c808dd
Tests: Code refactoring.
|
před 6 roky |
Aleksander Nowodzinski
|
d51aa72eda
Do not customize getSelectedContent() when the selection is empty.
|
před 6 roky |
Aleksander Nowodzinski
|
efc6627d2c
Used model writer to customize the getSelectedContent() method behavior.
|
před 6 roky |
Aleksander Nowodzinski
|
3d4f0b73f6
Enabled the Autoformat plugin in the manual test.
|
před 6 roky |
Aleksander Nowodzinski
|
8f41068df3
Ensured the code block is properlu copied to the clipboard (getSelectedContent() integration).
|
před 6 roky |
Aleksander Nowodzinski
|
4ff12c6974
Indentation retention when pressing enter.
|
před 6 roky |
Aleksander Nowodzinski
|
64d8d57c41
Used tab-size for the pre for better look.
|
před 6 roky |
Aleksander Nowodzinski
|
d79649d4fc
Double shift enter should not leave the code block when executed at the end of it.
|
před 6 roky |
Aleksander Nowodzinski
|
843bdb44a0
Improvements to the code block CSS.
|
před 6 roky |
Aleksander Nowodzinski
|
7659071684
Double enter at the end of the code block should exit it.
|
před 6 roky |
Aleksander Nowodzinski
|
1efdcf2ad3
Tests: "Fixed" CodeBlockEditing some failing assertions by adding a comment explaining that the issue is not in the package.
|
před 6 roky |
Aleksander Nowodzinski
|
0e4172727b
Tests: Added a test to check what happens if an unsplittable parent does not allow codeBlock during upcasting.
|
před 6 roky |
Aleksander Nowodzinski
|
a0ee7e6967
Make sure the code block splits parents when upcasting if not allowed. Checked upcasting multiple code blocks in a row (WIP).
|
před 6 roky |
Aleksander Nowodzinski
|
2b81615f97
Implemented the "codeBlock" dropdown with a split button and a list of available languages.
|
před 6 roky |
Aleksander Nowodzinski
|
65890e7f7b
Make sure the "Plain text" label from the config is correctly translated.
|
před 6 roky |
Aleksander Nowodzinski
|
2112dd559e
Code refactoring.
|
před 6 roky |
Aleksander Nowodzinski
|
8147b9f4ea
Tests: Added CodeBlockCommand tests to check if the "language" option is supported when executing.
|
před 6 roky |
Aleksander Nowodzinski
|
12475790cb
Docs: Documented the feature config.
|
před 6 roky |
Aleksander Nowodzinski
|
da62d7e3ab
Default feature config and the "language" attribute in the model followed by the "class" attribute in the view.
|
před 6 roky |
Aleksander Nowodzinski
|
2a1ab9bdb7
Moved layout block styles from ckeditor5-theme-lark.
|
před 6 roky |
Aleksander Nowodzinski
|
ab8a1c533d
Fixed the code block appeareance in RTL content. Fixed the long code overflow issue.
|
před 6 roky |
Aleksander Nowodzinski
|
fcaa46a5b8
Tests: Extended the manual test with more data.
|
před 6 roky |
Aleksander Nowodzinski
|
90dcd4f913
Allowed setting code block language via the `CodeBlockCommand`.
|
před 6 roky |
Aleksander Nowodzinski
|
3cdc6bc8cd
Tests: Added RTL manual test.
|
před 6 roky |