Skip to content

fix: check EDITOR_MAPPING_PREFIX before appending content type #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahanniga
Copy link

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
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants