Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@javan @drewrygh @sstephenson
44 lines (43 sloc) 915 Bytes
Trix.config.blockAttributes = attributes =
default:
tagName: "div"
parse: false
quote:
tagName: "blockquote"
nestable: true
heading1:
tagName: "h1"
terminal: true
breakOnReturn: true
group: false
code:
tagName: "pre"
terminal: true
text:
plaintext: true
bulletList:
tagName: "ul"
parse: false
bullet:
tagName: "li"
listAttribute: "bulletList"
group: false
nestable: true
test: (element) ->
Trix.tagName(element.parentNode) is attributes[@listAttribute].tagName
numberList:
tagName: "ol"
parse: false
number:
tagName: "li"
listAttribute: "numberList"
group: false
nestable: true
test: (element) ->
Trix.tagName(element.parentNode) is attributes[@listAttribute].tagName
attachmentGallery:
tagName: "div"
exclusive: true
terminal: true
parse: false
group: false
You can’t perform that action at this time.