From: Anthony Talarico Date: Mon, 20 Jun 2016 14:51:14 +0000 (-0400) Subject: Merge branch 'develop' into feature/shortcodeBuilder X-Git-Tag: v2.1.16^2~5^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=226ef86170dd7a48cc95d23d2843e6782b82417f;p=WP-Plugins%2Fglm-member-db.git Merge branch 'develop' into feature/shortcodeBuilder Conflicts: js/shortcodeBuilder.js --- 226ef86170dd7a48cc95d23d2843e6782b82417f diff --cc js/shortcodeBuilder.js index 4f5f6664,46b38ae9..23ce7adf --- a/js/shortcodeBuilder.js +++ b/js/shortcodeBuilder.js @@@ -36,8 -27,8 +36,10 @@@ jQuery(document).ready(function ($) // } // } // } - var shortcode = $("#shortcode_container").not('.glm-dynSelect-item'), clone, id_count; - id_count = 0; ++ +// var shortcode = $("#shortcode_container").not('.glm-dynSelect-item'), clone, id_count; +// id_count = 0; ++ // $("#additionalShortcode").on( "click", function () { // id_count++; // clone = shortcode.clone(true); @@@ -122,8 -113,8 +124,9 @@@ $("#showDetail").dialog().dialog("option", "width", 422); }); -// var regExp = /\[([^)]+)\]/; - var regExp = /glm_members_list_/g; + var regExp = /\[([^)]+)\]/; +// var regExp = /glm_members_list_/g; ++ function get_tinymce_content(){ if (jQuery("#wp-content-wrap").hasClass("tmce-active")){ @@@ -267,7 -258,7 +270,8 @@@ } else if ( new_ids.length === 1) { id_string = new_ids[0]; } + + if($("#content").css("display") !== "none"){ editor_content = content.val(); if(empty_space){ @@@ -284,8 -274,6 +288,9 @@@ editor_content = editor_content.replace(ids, 'category="' + id_string + '"' ); tinyMCE.activeEditor.setContent(editor_content); } else { + var test = tinyMCE.get('glm-members-list_1').getContent(); + console.debug(test); ++ editor_content = tinyMCE.get('content').getContent({format: 'raw'}); editor_content = editor_content.replace('category="' + ids, 'category="' + id_string); tinyMCE.activeEditor.setContent(editor_content);