This website works better with JavaScript.
Home
Explore
Help
Sign In
quiro
/
discourse-allowlist
Watch
2
Star
0
Fork
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
Browse Source
trying helpful idea :)
master
Marius Ciepluch
7 years ago
committed by
GitHub
parent
f6b3f2cdec
commit
0e315a91bb
1 changed files
with
12 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-3
assets/javascripts/image-tag-whitelist.js
+ 12
- 3
assets/javascripts/image-tag-whitelist.js
View File
@ -1,3 +1,12 @@
(
function
(
)
{
Discourse
.
Markdown
.
whiteListTag
(
'color'
,
'center'
,
'anchor'
,
'font'
,
'table'
,
'tr'
,
'td'
,
'span'
)
;
}
)
.
call
(
this
)
;
import
WhiteLister
from
'pretty-text/white-lister'
;
export
default
{
name
:
'dropcap'
,
initialize
(
)
{
const
whiteLister
=
new
WhiteLister
(
)
;
whiteLister
.
whiteListFeature
(
"dropcap"
,
[
'span.dropcap'
]
)
;
}
}
;
Write
Preview
Loading…
Cancel
Save