add collapse to paragraph and paragraph editor