eee
Showing
2 changed files
with
7 additions
and
2 deletions
| ... | @@ -386,7 +386,7 @@ function create_notification() | ... | @@ -386,7 +386,7 @@ function create_notification() |
| 386 | 'post_title' => $subject, | 386 | 'post_title' => $subject, |
| 387 | 'post_status' => 'publish', | 387 | 'post_status' => 'publish', |
| 388 | 'post_type' => 'newsLetter', | 388 | 'post_type' => 'newsLetter', |
| 389 | 'post_content' => $html, | 389 | 'post_content' => '<div id="newsletter">'.$html.'</div>', |
| 390 | 390 | ||
| 391 | ) | 391 | ) |
| 392 | ); | 392 | ); |
| ... | @@ -464,7 +464,7 @@ function create_notification() | ... | @@ -464,7 +464,7 @@ function create_notification() |
| 464 | ] | 464 | ] |
| 465 | ); | 465 | ); |
| 466 | 466 | ||
| 467 | $links[$lang] = get_permalink($post_id); | 467 | $links[$lang] = get_post_field( 'post_name', $post_id ); |
| 468 | } | 468 | } |
| 469 | 469 | ||
| 470 | // make post... | 470 | // make post... | ... | ... |
| ... | @@ -421,6 +421,11 @@ endforeach; | ... | @@ -421,6 +421,11 @@ endforeach; |
| 421 | 421 | ||
| 422 | jQuery(tinymce.get('fr_html').getBody()).html(<?php echo json_encode($newsletterFr->post_content); ?>); | 422 | jQuery(tinymce.get('fr_html').getBody()).html(<?php echo json_encode($newsletterFr->post_content); ?>); |
| 423 | 423 | ||
| 424 | // jQuery(document).on("click", jQuery(tinymce.get('en_html').getBody()).find( ".toc" ) ,function() { | ||
| 425 | // console.log(this); | ||
| 426 | // jQuery(this).parent().remove(); | ||
| 427 | // }); | ||
| 428 | |||
| 424 | 429 | ||
| 425 | jQuery(tinymce.get('en_html').getBody()).find( ".toc" ).click(function() { | 430 | jQuery(tinymce.get('en_html').getBody()).find( ".toc" ).click(function() { |
| 426 | jQuery(this).parent().remove(); | 431 | jQuery(this).parent().remove(); | ... | ... |
-
Please register or sign in to post a comment