Skip to content
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

Make module functional with SS4 #77

Merged
merged 1 commit into from Dec 4, 2018
Merged

Conversation

kinglozzer
Copy link
Contributor

On a project that’s short on time, so this is only the bare minimum functionality...

What’s working:

  • The TinyMCE button/popup
  • The form in the popup dialog

What’s not working (I assume, because I’ve not tested at all)

  • Placeholders
  • Editing an existing shortcode
  • Probably other things

Lots of JavaScript that this module relied on (e.g. “dialog” stuff, htmleditorfield helpers) have been removed for SS4, so I literally copied and pasted a few chunks from SS3. Ideally this would be re-built as a React UI or something, but I’m not volunteering for that task 😉

singleton('ShortcodableParser')->register($class);

$safeClassName = str_replace('\\', '_', $class);
ShortcodeParser::get('default')->register($safeClassName, array($class, 'parse_shortcode'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shortcode parser doesn’t like the \ in namespaced classes :(

@sheadawson sheadawson merged commit cfcf411 into sheadawson:4.0 Dec 4, 2018
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.

None yet

2 participants