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

First swipe to get tinyMCEs in #multiple fields #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bendoh
Copy link
Contributor

@bendoh bendoh commented May 20, 2016

Summary

Addresses issue #38 – Allow for #multiple fields to contain mce-type fields, which involves some JavaScript hoop-jumping-through.

Relavant Ticket(s)

Issue #38

@balbuf balbuf self-assigned this May 23, 2016
'textarea_name' => $id,
'textarea_rows' => count( $lines ),
) );
$results[$id] = ob_get_clean();
Copy link
Contributor

Choose a reason for hiding this comment

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

I have no idea about the performance implications but do you think it would be better to call ob_start() once outside of the loop and then ob_get_contents() and ob_clean() in the loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did a little research and couldn't find anything about the performance impact of starting and ending output buffering multiple times – the only difference that i see is that the output is potentially contained in memory slightly longer, but I think that happens with the PHP-level output buffering that is on by default anyway, and so it would just be a merely syntactical change that i think would be more confusing than having the start/get/end piece within the loop.

@balbuf
Copy link
Contributor

balbuf commented May 23, 2016

so far so good!

Need to put together a better test scenario for this (and the whole
plugin in general!)
@balbuf
Copy link
Contributor

balbuf commented May 25, 2016

nudge, nudge 🐤

@balbuf
Copy link
Contributor

balbuf commented Jun 2, 2016

BUMP! I need this for CRE plzzzzz @bendoh

@bendoh
Copy link
Contributor Author

bendoh commented Jun 2, 2016

I know but it's not easy and I'm not exactly swimming in free time here!

@balbuf
Copy link
Contributor

balbuf commented Jun 2, 2016

Kk that's fine - I'm just going to add a couple extra MCE fields that they can use instead of letting them have an arbitrary number.

@jcowher
Copy link
Contributor

jcowher commented Jul 28, 2016

FYI... I did this exact thing back in my WPMU Dev days. Want me to see if I can dig that code up?

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

Successfully merging this pull request may close these issues.

3 participants