{"json_modified": "2015-03-22T21:47:04.103808", "slug": "Web/API/Document/execCommand", "tags": ["m\u00e9todo", "API", "DOM", "editor", "NecesitaEjemplo", "metodo", "Referencia", "Refer\u00eancia"], "locale": "es", "title": "Document.execCommand()", "translations": [{"title": "Document.execCommand()", "url": "/en-US/docs/Web/API/Document/execCommand", "tags": ["API", "NeedsExample", "editor", "Reference", "R\u00e9f\u00e9rence", "R\u00e9ference", "DOM", "Method"], "summary": "", "localization_tags": [], "locale": "en-US", "last_edit": "2015-03-20T00:09:35", "review_tags": []}, {"title": "document.execCommand", "url": "/fr/docs/Web/API/Document/execCommand", "tags": [], "summary": "", "localization_tags": [], "locale": "fr", "last_edit": "2013-01-31T11:17:42", "review_tags": []}, {"title": "document.execCommand", "url": "/ja/docs/Web/API/Document/execCommand", "tags": ["Gecko DOM Reference", "DOM"], "summary": "", "localization_tags": [], "locale": "ja", "last_edit": "2013-05-21T03:47:05", "review_tags": []}, {"title": "document.execCommand", "url": "/zh-CN/docs/Web/API/Document/execCommand", "tags": [], "summary": "", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2014-10-23T23:30:26", "review_tags": []}, {"title": "Document.execCommand()", "url": "/ru/docs/Web/API/Document/execCommand", "tags": [], "summary": "", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-02-23T15:53:17", "review_tags": []}], "modified": "2015-03-22T21:47:03", "label": "Document.execCommand()", "localization_tags": ["inprogress"], "url": "/es/docs/Web/API/Document/execCommand", "last_edit": "2015-03-22T21:47:01", "summary": "Cuando un documento HTML se ha cambiado a designMode, el objeto de documento expone el m\u00e9todo execCommand lo que permite ejecutar comandos para manipular el contenido de la regi\u00f3n editable. La mayor\u00eda de los comandos afectan a la selecci\u00f3n de documento (negrita, cursiva, etc.), mientras que otros insertar nuevos elementos (a\u00f1adiendo un enlace) o afectan a toda una l\u00ednea (sangr\u00eda). Al usar contentEditable, la llamada a execCommand afectar\u00e1 el elemento editable activo actual.", "sections": [{"id": "Summary", "title": "Resumen"}, {"id": "Syntax", "title": "Sintaxis"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Comandos", "title": "Comandos"}, {"id": "Example", "title": "Ejemplo"}, {"id": "Browser_Compatibility", "title": "Compatibilidad del navegador"}, {"id": "Specification", "title": "Especificaci\u00f3n"}, {"id": "See_also", "title": "Vea tambi\u00e9n"}], "id": 145935, "review_tags": []}