Commit Graph

169 Commits

Author SHA1 Message Date
Michael Voříšek
332c165d28 Fix some basic JS CS (#9328)
* fix "nonblock-statement-body-position" (fixed already)

* fix "comma-dangle"

* fix "no-regex-spaces"

* fix "new-parens"

* fix "object-curly-newline"

* fix "object-property-newline"

* fix "spaced-comment" semimanually

* fix "no-constant-condition" manually

* fix "unicorn/no-hex-escape"

* fix "unicorn/escape-case"

* fix "quote-props"

* fix "no-whitespace-before-property" - fix bug/typo

* fix "unicorn/empty-brace-spaces"

* fix "keyword-spacing"

* fix "dot-notation"

* fix "no-return-assign" manually

* fix "padding-line-between-statements"

* fix "key-spacing"

* fix "no-else-return" semimanually

* fix some "no-undef"

* fix case cs

* Revert "fix "padding-line-between-statements""

* improve switch/case format I.

* improve switch/case format II.

regex: (^ *(break|return).*)\n *(\n)

* fix safe "eqeqeq"

* fix "radix"

* fix v3.49.0 CS (static providers)

* fix "string_implicit_backslashes" in php files

* fix comments align

* fix test static providers

* fix stan

* disable "final_internal_class" rule
2024-02-06 08:28:19 +01:00
Michael Voříšek
ecd2796622 Fix JS whitespace CS (#9327)
* fix "no-extra-semi"

* fix "object-curly-spacing"

* fix "block-spacing"

* fix "padded-blocks"

* fix "space-before-blocks"

* fix "space-before-function-paren"

* fix "operator-linebreak"

* fix "space-unary-ops"

* fix "space-infix-ops"

* fix most "brace-style"

* fix "curly"

* fix most "brace-style" II

* fix "no-multi-spaces"

* search regex: (?<=\n)( +)(?! ).*\n(?!\1)( +)(&&|\|\||\()

* search regex: (?<=\n)( +)(?! |\*/).*(?<!;)\n(?!\1)( +)(?! |\}|\]|\)|\.)

* fix mostly "brace-style" /w allowSingleLine: false

* fix cs

* search regex: (//|/\*).*\n\s+\{
2024-01-30 07:50:02 +01:00
Michael Voříšek
2643be3eaa Fix single quotes CS (#9283)
* Fix "single_quote"

* fix "escape_implicit_backslashes"

* fix typo from f363481c

* fix single quotes in JS

* fix some minor JS CS

* fix CS v3.45.0
2023-12-31 16:36:55 +01:00
Michael Voříšek
740267fac0 Lint JS files using eslint and normalize JS indentation (#9280)
* Lint JS using eslint

* Fix "comma-spacing"

* Fix "semi"

* Fix indent to unified 4 spaces as for PHP

* ignore symlinked public_html/* files
2023-12-23 17:08:32 +01:00
Aleksander Machniak
b19689e4f1 Update to TinyMCE 5.10.9 security release (#9228) 2023-11-28 20:25:52 +01:00
Philip Weir
89ce052242 Unify HTML editor font settings (#9177) 2023-11-25 14:23:17 +01:00
Aleksander Machniak
b8c83aa204 Use no-referrer policy for images pasted into HTML editor 2023-06-25 13:40:06 +02:00
Aleksander Machniak
d3bcfba010 Convert images in HTML content pasted into HTML editor to data: URIs (and later to attachments) (#6938) 2023-06-25 10:07:00 +02:00
Aleksander Machniak
907448df76 Fix TinyMCE configuration for handling styles of pasted content in webkit browsers (#8555) 2022-06-18 19:04:12 +02:00
Aleksander Machniak
5626e26c58 Fix slow loading of long HTML content into the HTML editor (#8108) 2022-04-03 12:30:16 +02:00
Aleksander Machniak
cb37d14c5c Support responses (snippets) in HTML format (#5315) 2021-08-28 19:17:19 +02:00
Aleksander Machniak
b69d20ea19 Update to TinyMCE 5.8.2 2021-06-27 08:08:34 +02:00
Aleksander Machniak
150dac1a92 TinyMCE 5.8.0 2021-05-09 11:12:09 +02:00
Josh Soref
203f456620 Spelling (#8001) 2021-04-18 08:43:18 +02:00
Aleksander Machniak
75c604aa39 Upgrade to TinyMCE 5.7.1 2021-03-18 19:03:21 +01:00
Aleksander Machniak
66718c8457 Upgrade to TinyMCE 5.5.1 2020-10-05 18:58:44 +02:00
Aleksander Machniak
cd3cad6aae TinyMCE 5 (#7403) 2020-07-11 18:46:17 +02:00
Aleksander Machniak
a748214595 Fix so button label in Select image/media dialogs is "Close" not "Cancel" (#7246) 2020-03-08 11:48:21 +01:00
Aleksander Machniak
38d6659384 Elastic: Fix text selection with Shift+PageUp and Shift+PageDown in plain text editor when using Chrome (#7230) 2020-02-23 12:59:14 +01:00
Aleksander Machniak
58aea024b4 Improve style tag handling in TinyMCE (#7088) 2019-11-29 12:54:35 +01:00
Aleksander Machniak
94c795b539 Fix bug where HTML reply could add an empty line with extra indentation above the original message (#7088) 2019-11-29 11:20:58 +01:00
Aleksander Machniak
3c01f472e0 Elastic: Change HTML editor widget to improve form flow (#6992) 2019-11-10 18:54:43 +01:00
Aleksander Machniak
ce70166d9e Elastic: Fix inserting responses at cursor position (#6971)
Don't check if the field has focus for text selection.
2019-10-16 11:18:33 +02:00
Aleksander Machniak
70d342a436 Fix language selection for spellchecker in html mode (#6915)
Also fix so the language is not reset when switching from html to plain
text and vice-versa.
2019-09-11 15:15:36 +02:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Aleksander Machniak
f0811f6f50 DOn't use deprecated (and slow) selectors 2019-04-11 10:47:11 +02:00
Aleksander Machniak
0492b1f6e5 HTML5 Upload Progress (#6177) (#6583)
Replaced all old upload progress code in favour of ajax upload progress.
Instead of posting a hidden iframe, we now use AJAX (as we did for drag-n-drop).
Removed code for old browsers. Now we support IE >= 10, Firefox > 4.
Upload progress may not work in some more, but support is quite good.
2019-02-03 09:49:02 +01:00
Aleksander Machniak
708ceb2ba0 Elastic: Add style for HTML editor content (use embed.css for this) 2018-12-07 11:57:10 +01:00
Aleksander Machniak
15c6a1754d Elastic: Shift+Tab on mail compose editor scrolls the page to the top (#6413) 2018-09-29 19:05:08 +02:00
Aleksander Machniak
fe420a4e9e Update to TinyMCE 4.8.2 2018-09-11 09:24:24 +02:00
Aleksander Machniak
c826fd502d Fix focus on the editor when switching modes 2018-06-18 13:38:09 +02:00
Aleksander Machniak
338486348e Fix adding uploaded images to image selector list 2018-06-18 09:31:23 +02:00
Aleksander Machniak
e57582baf0 Fix image upload dialog for signatures 2018-06-14 13:46:35 +02:00
Aleksander Machniak
006fed33d3 Elastic: Completed TinyMCE styling 2018-06-14 12:38:25 +02:00
Aleksander Machniak
00acb46411 Update to TinyMCE 4.7.13, refactor image selector dialog, add style for Elastic skin 2018-06-13 14:00:39 +02:00
Aleksander Machniak
2428be488e Allow style tags in HTML editor on composed/reply messages (#5751) 2018-03-18 11:09:46 +01:00
Aleksander Machniak
eb91daf00d Added 9pt and 11pt to the list of font sizes in HTML editor 2018-03-06 09:17:51 +01:00
Aleksander Machniak
31ffef67ad Skip _lang param if not set (#6203) 2018-03-01 21:10:50 +01:00
Aleksander Machniak
8b0109d81c Add set_content() method to the editor widget 2017-12-29 13:51:09 +01:00
Aleksander Machniak
90b0cd814a Add editor-load event and enable shift-click on links in HTML editor 2017-12-28 13:57:00 +01:00
Aleksander Machniak
adc9df803b Fix var scope (#6042) 2017-11-14 07:58:54 +01:00
Aleksander Machniak
72aedd368b Fix Edge encoding bug when pasting text into the HTML editor, update to TinyMCE 4.5.8 (#5885) 2017-10-12 11:03:48 +02:00
Aleksander Machniak
79ea526d65 Fix missing cursor in HTML editor on mail reply (#5969) 2017-09-29 08:57:03 +02:00
Aleksander Machniak
9858c2a294 Merge branch 'master' into dev-elastic 2017-05-14 13:32:35 +02:00
Aleksander Machniak
533d32e991 Update to TinyMCE 4.5.7 2017-05-05 08:35:22 +02:00
Aleksander Machniak
065b16df12 Update to TinyMCE 4.5.6 2017-04-04 09:12:40 +02:00
Aleksander Machniak
7347c22af8 Update to TinyMCE 4.5.5 2017-03-17 09:20:38 +01:00
Aleksander Machniak
a928c3f988 Add editor-init event 2017-03-15 12:36:07 +01:00
Aleksander Machniak
b7e4c94972 Bring back lists buttons in TinyMCE toolbar 2017-02-13 09:10:15 +01:00
Aleksander Machniak
12a49437d2 Upgrade to TinyMCE 4.5.1 2016-12-08 16:23:56 +01:00