Purpose
There was a bug that whenever someone copied a line and then repasted it, the editor would not save. Additionally using the tab key to indent two spaces was actually saved as invalid YAML.
JIRA
Changes
Improvements and fixes
I changed the the ui-codemirror option indentWithTabs to false
I added a codemirror callback that replaces Tab characters with spaces.
@toastercup I will switch cortex develop back to legacy-develop once this gets approved or if we decide not to merge it.But I need a Cortex branch that has sites configured in cloud66 to feed from.
Purpose There was a bug that whenever someone copied a line and then repasted it, the editor would not save. Additionally using the tab key to indent two spaces was actually saved as invalid YAML.
JIRA
Changes
Improvements and fixes
indentWithTabs
to falseTab
characters with spaces.Changes to developer setup/environment
Architectural changes
Migrations or Steps to Take on Production
Library changes
Side effects
Screenshots
Before
After
Feature Server
How to Verify These Changes
Specific pages to visit
Steps to take
Responsive considerations
Relevant PRs/Dependencies
Additional Information
I made the mistake of setting
indentWithTabs
to true. Here is the Code Mirror docs: https://codemirror.net/doc/manual.html