Рубрики
HTML "Projects" Project "Editor Code" Портфолио

php\shortcode «Toggle»

загрузка кода + редактор из хостинга в CMS WordPress

View Source

host\wp-includes\functions.js

Toggle.php
function jquery_html_add_editor_path_content(path,e){
 let content=pfun('file/content/get/2129091323',path);
 return jquery_html_editor_template(content).appendTo($(e));;
}
  • Панель инструментов для редактор кода
class btn_reload extends efile{
click_jquery_html_editor_path_content(e){
 let panel=$(e.currentTarget).closest('.panel');
 let path=panel.attr('title');
 let code_container=panel.closest('.code');
 code_container.find('pre').remove();
 jquery_html_editor_add_path_content(path,code_container);
 alert('Перезагружен!');
}

html(){
return {css:{display:'inline-block'},html:{teg:'img',classes:'img',
 style:{display:'inline-block'},
 attr:{src:"reload"},
 events:{click:this.click_jquery_html_editor_path_content}
}};
}
}