-
Notifications
You must be signed in to change notification settings - Fork 265
[3.0] Theme #7933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-3.0
Are you sure you want to change the base?
[3.0] Theme #7933
Changes from 3 commits
c5300fa
1289a9d
0229324
48ab63c
25d180d
817c484
7893406
7d2ee00
d9c8846
44aa141
6c446ed
898a4a3
a56cb37
2ae572a
7ba4c73
4250e41
4357586
8536529
a55d303
5c8746b
a6305d4
2c9cdbf
0521c79
462a641
bf32d85
d5599e2
a385fc2
2c968f7
ff4a72a
9cdc960
eb337ca
7c44a75
47c81c2
63caca5
3b910d9
b79646a
607d665
3e0ea5a
f6de6b0
5e8cbe7
cf77c4b
4ec2f64
398a352
ab4a59a
47de41a
2e7f2fe
75819a2
a05397c
87e553d
bf72593
5251b52
308d4f2
84a359d
c9eb2ed
94383a7
223ad40
7db907a
a51a02b
e2770db
2c9a468
e23aa36
95036d6
bf0bbcc
f1464a9
1a10d9c
452badd
4c7fe4f
96dff19
c99d487
09d0a9d
29e001a
eee645d
89f7501
8d0c3f1
6914adf
41a9c96
9899f7c
ace504d
a757f1a
4183105
fc6294b
ec9599b
f051c91
485f9b7
d2026c2
1cb587f
fb11687
c8661d0
f0a0678
67d1110
2be5143
56d0554
0dc1508
2619312
12e6d5c
2723406
288e88e
bb8acc1
24bbbad
8461169
c026e02
80f4c30
be1a272
51fb719
00c6df3
410c853
10c00f2
12a43e5
107505a
6a73f00
b63d899
365f105
23c09ff
0ec51cf
6793e49
c21c21f
526628f
86c6207
a302c9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1153,20 +1153,7 @@ sceditor.formats.bbcode.set( | |
| } | ||
| ); | ||
|
|
||
| sceditor.formats.bbcode.set( | ||
| 'pre', { | ||
| tags: { | ||
| a: { | ||
| 'data-type': ['ftp'] | ||
| } | ||
| }, | ||
| format({href}, content) { | ||
| return (href == content ? '[ftp]' : '[ftp=' + href + ']') + content + '[/ftp]'; | ||
| }, | ||
| html(token, {defaultattr}, content) { | ||
| return '<a data-type="ftp" href="' + (defaultattr || content) + '">' + content + '</a>'; | ||
| } | ||
| }) | ||
| sceditor.formats.bbcode | ||
| .set('table', { | ||
| breakStart: true, | ||
| isHtmlInline: false, | ||
|
|
@@ -1178,10 +1165,10 @@ sceditor.formats.bbcode.set( | |
| .set('tt', { | ||
| tags: { | ||
| tt: null, | ||
| span: {'class': ['tt']} | ||
| code: {'class': ['bbc_tt']} | ||
| }, | ||
| format: '[tt]{0}[/tt]', | ||
| html: '<span class="tt">{0}</span>' | ||
| html: '<code class="bbc_tt">{0}</code>' | ||
|
||
| }) | ||
| .set('pre', { | ||
| tags: { | ||
|
|
@@ -1216,21 +1203,8 @@ sceditor.formats.bbcode.set( | |
| format: "[php]{0}[/php]", | ||
| html: '<code class="php">{0}</code>' | ||
| } | ||
| ); | ||
|
|
||
| sceditor.formats.bbcode.set( | ||
| 'tt', { | ||
| tags: { | ||
| font: { | ||
| 'face': 'monospace' | ||
| } | ||
| }, | ||
| format: '[tt]{0}[/tt]', | ||
| html: '<font face="monospace">{0}</font>' | ||
| } | ||
| ); | ||
|
|
||
| sceditor.formats.bbcode.set( | ||
| ) | ||
| set( | ||
| 'code', { | ||
| tags: { | ||
| code: null, | ||
|
|
@@ -1246,7 +1220,7 @@ sceditor.formats.bbcode.set( | |
| format: function (element, content) { | ||
| let title = element.getAttribute('data-title'); | ||
|
|
||
| if (element.className === 'php') | ||
| if (element.className === 'phpcode' || element.className === 'bbc_tt') | ||
| return content; | ||
| else if (element.tagName === 'DIV') | ||
| return ''; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
ttandheadingbuttons should be moved in this list to match the changes in 05664be.Should also incorporate the changes to this list that were made in #8593 (i.e. buttons for the new
spoileranddetailscommands).