Đã 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 :

$('#wpa_loop-samples').sortable();

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 thêm: add tinymce dynamically wordpress, wordpress tinymce metaboxes, tinymce dynamically added textarea, wordpress textarea tinymce, wordpress group, contents editor, load wordpress tinymce dynamically, wordpress add tinymce metaboxes, wordpress tinymce clone, dom, alchemy, php sortable, php alchemy, wordpress show post, sortable, add group, wordpress add media, alchemy php, wordpress post editor, php jqueryui, add media, wordpress show post page, dynamically generated, sample tinymce php, load doesn

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

Mã Dự Án: #1049871