{"id":209367,"date":"2011-05-15T08:00:00","date_gmt":"2011-05-15T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/wp-live-css-editor\/"},"modified":"2013-09-28T13:14:00","modified_gmt":"2013-09-28T13:14:00","slug":"wp-live-css-editor","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/wp-live-css-editor\/","title":{"rendered":"WP Live CSS Editor"},"content":{"rendered":"<p>A CSS live Editor that allows you to preview realtime CSS changes and then save your changes.<br \/>\nIt saves dated backups of each save, so you can go back if it breaks, and you should erase backups once on a while.<br \/>\nIt\u2019s a port from a Drupal module Live CSS http:\/\/drupal.org\/project\/live_css by guybedford http:\/\/drupal.org\/user\/746802<br \/>\nNow using ACE editor http:\/\/ace.ajax.org\/<br \/>\nTested on WordPress 3.6. But needs more testing !<\/p>\n<p>=capabilities.php problem (not bug) SOLVED !=<\/p>\n<p>Ok, now I did the correct thing and created an action to the wp_loaded hook to init the plugin, then,<br \/>\ncheck whether the user can \u201cerase themes\u201d which is an Admin capability only, so the plugin only works if you are an admin.<br \/>\nNo need to modify the capabilities.php nor anything else.<\/p>\n<p>Some users have had problems in former 12.05 release with their site being inaccesible after installing the plugin.<br \/>\nIt all seemed to be part of the same problem with the capabilities.php file that is discussed here:<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/fatal-error-call-to-undefined-function-wp_get_current_user-4?replies=32<\/p>\n<p>It works nice and perfect for me, but still needs testing !!!<\/p>\n<h3>Hola mundo !<\/h3>\n<p>Este plugin est\u00e1 basado en el m\u00f3dulo de [Drupal Live CSS] (http:\/\/drupal.org\/project\/live_css) de [guybedford] (http:\/\/drupal.org\/user\/746802)<\/p>\n<p>Es un editor de CSS que te permite editar en directo todas las hojas de estilo CSS de tu web, ver los cambios y guardar sobre la marcha.<br \/>\nEst\u00e1 pensada para usarla al dise\u00f1ar la web, por lo que conviene desactivarlo o desinstalarlo una vez terminada. Cada vez que se guardan los cambios se genera una copia de seguridad fechada, para que puedas volver atr\u00e1s si hace falta.<br \/>\nUtiliza ACE como editor.<\/p>\n<p>S\u00f3lo los administradores pueden usar el plugin.<\/p>\n<p>Importante !!!<\/p>\n<p>Hacer copia de respaldo de los archivos CSS antes de probarlo !<br \/>\nAunque el plugin genera autom\u00e1ticamente copias de seguridad fechadas en el mismo directorio en que est\u00e9n los archivos modificados, siempre conviene tener una copia del estado general de la cosa antes de empezar a trastear.<br \/>\nSi no funciona al guardar o hacer la copia de seguridad aparece un mensaje con las rutas del archivo que se intentaba modificar, la de la copia de seguridad y tal vez un mensaje de error. Lo m\u00e1s seguro es que el problema sea de permisos. Los CSS que quieras editar deber\u00edan tener permiso de escritura 755.<\/p>\n<p>Instalaci\u00f3n<\/p>\n<p>La instalaci\u00f3n es la t\u00edpica de cualquier plugin de wordpress. Desempaquetar el zip en wp-content\/plugins, y listo. No hay que tocar los temas ni hacer nada m\u00e1s que activarlo desde el panel de administraci\u00f3n.<br \/>\nNo tiene opciones ni p\u00e1gina propia en el panel de administraci\u00f3n.<br \/>\nProbado en WordPress 3.3.2, tienes que ser un administrador para poder usarlo.<\/p>\n<p>Utiliza ahora el hook wp_loaded que arregla el problema de la versi\u00f3n anterior que se discut\u00eda aqu\u00ed: https:\/\/wordpress.org\/support\/topic\/fatal-error-call-to-undefined-function-wp_get_current_user-4?replies=32<\/p>\n<p>M\u00e1s informaci\u00f3n<\/p>\n<pre><code>http:\/\/drupal.org\/project\/live_css  Live CSS\nhttp:\/\/drupal.org\/user\/746802       guybedford\nhttp:\/\/drupal.org\/user\/78427\nhttp:\/\/mozillalabs.com\/skywriter\/2011\/01\/18\/mozilla-skywriter-has-been-merged-into-ace\/\nhttp:\/\/www.ajax.org\/\nhttp:\/\/ace.ajax.org\/\n\nhttps:\/\/codex.wordpress.org\/AJAX_in_Plugins\nhttp:\/\/briancray.com\/2009\/08\/19\/wordpress-head-element\/\nhttp:\/\/www.devlounge.net\/code\/using-ajax-with-your-wordpress-plugin\nhttp:\/\/amiworks.co.in\/talk\/simplified-ajax-for-wordpress-plugin-developers-using-jquery\/\n\nhttp:\/\/drupal.org\/project\/cssedit   Realtime CSS Editor\nhttp:\/\/drupal.org\/user\/78427        tjholowaychuk\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edit, preview changes in real time and save all your project's CSS stylesheets live in the browser.<\/p>\n","protected":false},"author":65,"featured_media":228505,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"WP Live CSS Editor - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Edit, preview changes in real time and save all your project's CSS stylesheets live in the browser."},"footnotes":""},"categories":[1],"tags":[93,776,2701,574],"class_list":["post-209367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-css","tag-designer","tag-developer","tag-editor"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/209367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=209367"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/209367\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/228505"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=209367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=209367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=209367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}