Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Lenin-Kerrigan

    (@lenin-kerrigan)

    Hi. Problem is solved, i find what wp_editor initialize object has a special parametr for url saving, it’s name

    relative_urls

    It should be set to false, if you use wp_editor in frontend part of the site.

    Thread Starter Lenin-Kerrigan

    (@lenin-kerrigan)

    I find only this in wp-admin/js/editor.js

    wp.editor.getContent = function( id ) {
    		var editor;
    
    		if ( ! $ || ! id ) {
    			return;
    		}
    
    		if ( window.tinymce ) {
    			editor = window.tinymce.get( id );
    
    			if ( editor && ! editor.isHidden() ) {
    				editor.save();
    			}
    		}
    
    		return $( '#' + id ).val();
    	};

    and

    switchEditor( id, mode )
    which is too large to copy paste it here

    But in this functions is totaly nothing about changing url in the content…

Viewing 2 replies - 1 through 2 (of 2 total)