saqimtiaz / streams

TiddlyWiki plugin for rapid data entry with a keyboard driven workflow. Divide content into smaller tiddlers as you write.
BSD 3-Clause "New" or "Revised" License
58 stars 6 forks source link

fix: check EDITOR_MAPPING_PREFIX before appending content type #41

Open ahanniga opened 2 years ago

ahanniga commented 2 years ago

If a custom Streams template is specified in settings, EDITOR_MAPPING_PREFIX can be undefined and throw a Javascript exception. Check if EDITOR_MAPPING_PREFIX is defined. If not, leave editorType unassigned and try best-guess based on encoding.

saqimtiaz commented 1 year ago

@ahanniga Apologies for the late reply. The upcoming TW v5.2.4 release will introduce the $genesis widget which will allow the replacement of the $streams-edit widget with wikitext handling to choose the appropriate editor. The plan is to take advantage of that opportunity to resolve this issue in a more flexible and hackable manner.