Hey guys
Happens when I try and use a template via Discourse Templates plugin and the template body has a wrap bbcode element, it’s not inserted and the rich text editor not switching to markdown. Tested with beta2 on Chrome Browser.
To repro:
- Open composer, Make sure you are in rich text mode.
- Open template plugin via
Icon in composer - Find a template that was
[wrap]bbcode in the body - Click the
Paste button for the template
Expected behavior would be for the editor to switch automatically back to markdown mode
Current behavior: Nothing happens, error in console
parser.js:47 Uncaught s
at o.convert (parser.js:47:15)
at eF.convertFromMarkdown (prosemirror-editor.gjs:245:24)
at q._join (index.js:788:21)
at q.join (index.js:605:17)
at p (index.js:152:22)
at eb.convertFromMarkdown (index.js:250:23)
at eb.insertBlock (text-manipulation.js:167:22)
at q (cache-fCezwMOy.js:471:12)
at r.trigger (evented.js:68:5)
at #h (d-templates.js:101:1)
at _.insertTemplate (filterable-list.js:115:1)
at c.apply (item.js:11:1)
at d-button.gjs:136:19
at invoke (index.js:264:14)
at m.flush (index.js:180:11)
at g.flush (index.js:334:19)
at q._end (index.js:762:32)
at q.end (index.js:565:10)
at q._runExpiredTimers (index.js:869:12)
convert @ parser.js:47
convertFromMarkdown @ prosemirror-editor.gjs:245
_join @ index.js:788
join @ index.js:605
p @ index.js:152
(anonymous) @ index.js:250
insertBlock @ text-manipulation.js:167
q @ cache-fCezwMOy.js:471
trigger @ evented.js:68
#h @ d-templates.js:101
insertTemplate @ filterable-list.js:115
apply @ item.js:11
(anonymous) @ d-button.gjs:136
invoke @ index.js:264
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
end @ index.js:565
_runExpiredTimers @ index.js:869
setTimeout
setTimeout @ index.js:39
_installTimerTimeout @ index.js:912
_reinstallTimerTimeout @ index.js:896
_later @ index.js:829
later @ index.js:652
T @ index.js:562
_triggerAction @ d-button.gjs:133
click @ d-button.gjs:91