Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Bug 730707: First batch of bug fixes #162

Closed
wants to merge 1 commit into from

Conversation

lmorchard
Copy link
Contributor

  • Switch back to out-of-box <% %> EJS escape sequences instead of {% %},
    since the ACE editor interferes with that less and the EJS docs make
    more sense that way.
    • TODO: Maybe need a schematic migration to convert existing templates
      in dev boxes at least:

      update wiki_document
      set html=replace(replace(html, '{%', '<%'), '%}', '%>')
      where slug like '%Template:%';

      update wiki_revision
      set content=replace(replace(content, '{%', '<%'), '%}', '%>')
      where slug like '%Template:%';

  • Don't process views of Template:* pages through KumaScript
  • Don't apply Bleach to Template:* source
  • Reduce required length of page title to 2, so "en" and "CSS" can be
    edited.
  • Whitelist a few more elements used in pages for Bleach.
  • Add more elements with style attribute allowed by Bleach, whitelist a
    bunch of inline styles used in existing pages.
  • Improvements to kumascript error display, broken out into an include.
    Includes edit / new links for Template documents behind scripts.
  • Enable plain-text syntax highlighter brush
  • KumaScript update

* Switch back to out-of-box <% %> EJS escape sequences instead of {% %},
  since the ACE editor interferes with that less and the EJS docs make
  more sense that way.

  * TODO: Maybe need a schematic migration to convert existing templates
    in dev boxes at least:

      update wiki_document
      set html=replace(replace(html, '{%', '<%'), '%}', '%>')
      where slug like '%Template:%';

      update wiki_revision
      set content=replace(replace(content, '{%', '<%'), '%}', '%>')
      where slug like '%Template:%';

* Don't process views of Template:* pages through KumaScript

* Don't apply Bleach to Template:* source

* Reduce required length of page title to 2, so "en" and "CSS" can be
  edited.

* Whitelist a few more elements used in pages for Bleach.

* Add more elements with style attribute allowed by Bleach, whitelist a
  bunch of inline styles used in existing pages.

* Improvements to kumascript error display, broken out into an include.
  Includes edit / new links for Template documents behind scripts.

* Enable plain-text syntax highlighter brush

* KumaScript update
@lmorchard lmorchard closed this Apr 16, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant