WP 4.0
-
Had problems to insert form to the post
decision:
(file /x-forms-express/tinyMCE/functions.js)
replace the code// JavaScript Document function insert_x_form(){ var shortcode = '[XForms '; shortcode += 'id="'+jQuery('select[name=wap_x_forms_Id]').val() + '" '; shortcode += ']'; if(window.tinyMCE) { //TODO: For QTranslate we should use here 'qtrans_textarea_content' instead 'content' var tmce_ver=window.tinyMCE.majorVersion; if (tmce_ver>="4") { window.tinyMCE.execCommand('mceInsertContent', false, shortcode); } else { window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, shortcode); } //Peforms a clean up of the current editor HTML. //tinyMCEPopup.editor.execCommand('mceCleanup'); //Repaints the editor. Sometimes the browser has graphic glitches. tinyMCEPopup.editor.execCommand('mceRepaint'); tinyMCEPopup.close(); } return; }
- The topic ‘WP 4.0’ is closed to new replies.