Đã Hủy

Wordpress mod: add tinyMCE to dynamically added metaboxes

I'm using WP_Alchemy to handle all my metaboxes.

[url removed, login to view]

Alchemy has a featured called "have_fields_and_multi" which lets you define a "group" and a button that lets you dynamically clone/add this group. I have a textarea and want to apply the tinyMCE area to it. this works fine if the textarea is in the DOM on page load. but the dynamically generated textareas show the tinyMCE buttons but don't function.

i also have duplicated the media upload buttons that are on the main post editor. i need this to work w/ the dynamically added textareas.

and finally these groups need to be sortable via jqueryUI. without tinyMCE this is simple a matter of :


but tinyMCE doesn't like being sorted and breaks down... this must work on both the items in initial DOM (i think i have this part figured out) as well as on items added to the DOM in the first two parts of the assignment

I have attached a sample that can be merged into any theme by copying in the folders and pasting the [url removed, login to view] contents into your own functions.php.... but you could also see the general idea in the following pastebins:

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

so in summary:

1. ensure tinyMCE works on dynamically added textareas

2. ensure media upload buttons work w/ tinyMCE on same

3. make tinyMCE editors sortable

Kĩ năng: jQuery / Prototype, PHP, WordPress

Xem nhiều hơn: add tinymce textarea add dynamically, add tinymce dynamically wordpress, wordpress tinymce metaboxes, add tinymce textarea metaboxes wordpress, tinymce dynamically added textarea, wordpress wp_alchemy, wordpress textarea tinymce, www dom com, wordpress group, contents editor, load wordpress tinymce dynamically, wordpress add tinymce metaboxes, wordpress tinymce clone, have_fields_and_multi, dom, alchemy, php sortable, php alchemy, wordpress show post, sortable, add group, wordpress add media, alchemy php, wordpress post editor, php jqueryui

Về Bên Thuê:
( 8 nhận xét ) Lincoln, United States

ID dự án: #1049871