{"json_modified": "2015-05-08T10:26:17.948996", "slug": "Web/API/Document/execCommand", "tags": [], "locale": "it", "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": "When an HTML document has been switched to designMode, the document object exposes the execCommand
method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable
, calling execCommand
will affect the currently active editable element.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-16T22:56:23", "review_tags": []}, {"title": "document.execCommand", "url": "/fr/docs/Web/API/Document/execCommand", "tags": [], "summary": "Voir\u00a0\u00c9dition de texte riche dans Mozilla.", "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": "\u300eMozilla \u306b\u304a\u3051\u308b\u30ea\u30c3\u30c1\u30c6\u30ad\u30b9\u30c8\u7de8\u96c6\u300f\u306e\u300e\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u300f\u306e\u7ae0\u3092\u3054\u89a7\u4e0b\u3055\u3044\u3002", "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": "\u5f53\u6587\u6863\u5bf9\u8c61\u88ab\u8f6c\u6362\u4e3a\u8bbe\u8ba1\u6a21\u5f0f\u7684\u65f6\u5019\uff08\u9009\u4e2d\uff0c\u8bbe\u7f6econtentEditable\u7b49\uff09\uff0c\u6587\u6863\u5bf9\u8c61\u63d0\u4f9b\u4e86\u4e00\u4e2aexecCommand\u65b9\u6cd5\uff0c\u901a\u8fc7\u7ed9\u8fd9\u8fd9\u4e2a\u65b9\u6cd5\u4f20\u9012\u53c2\u6570\u547d\u4ee4\u53ef\u4ee5\u64cd\u4f5c\u53ef\u7f16\u8f91\u533a\u57df\u7684\u5185\u5bb9\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u547d\u4ee4\u5927\u591a\u6570\u662f\u5bf9\u6587\u6863\u9009\u4e2d\u533a\u57df\u7684\u64cd\u4f5c
\u00a0(\u5982bold, italics\u7b49), \u4e5f\u53ef\u4ee5\u63d2\u5165\u4e00\u4e2a\u5143\u7d20(\u5982\u589e\u52a0\u4e00\u4e2aa\u94fe\u63a5) \u6216\u8005\u4fee\u6539\u4e00\u4e2a\u5b8c\u6574\u884c (\u5982\u7f29\u8fdb).\u3002\u5f53\u5143\u7d20\u88ab\u8bbe\u7f6e\u4e86contentEditable\uff0c\u901a\u8fc7\u6267\u884cexecCommand
\u00a0\u65b9\u6cd5\u53ef\u4ee5\u5bf9\u5f53\u524d\u6d3b\u52a8\u5143\u7d20\u8fdb\u884c\u5f88\u591a\u64cd\u4f5c\u3002", "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": "\u041a\u043e\u0433\u0434\u0430 HTML \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d \u0432 designMode, \u043e\u0431\u044a\u0435\u043a\u0442 document \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u00a0execCommand
\u00a0, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438. \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 (bold, italics, \u0438 \u0442\u043f.), \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b (createLink) \u0438\u043b\u0438 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0432\u0441\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (indenting). \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438\u00a0contentEditable
, \u0432\u044b\u0437\u043e\u0432\u00a0execCommand
\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-02-23T15:53:17", "review_tags": []}, {"title": "Document.execCommand()", "url": "/es/docs/Web/API/Document/execCommand", "tags": ["m\u00e9todo", "API", "DOM", "editor", "NecesitaEjemplo", "metodo", "Referencia", "Refer\u00eancia"], "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.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-03-22T21:47:01", "review_tags": []}], "modified": "2015-05-08T10:26:16", "label": "Document.execCommand()", "localization_tags": ["inprogress"], "url": "/it/docs/Web/API/Document/execCommand", "last_edit": "2015-05-08T10:26:04", "summary": "When an HTML document has been switched to designMode, the document object exposes the execCommand
method which allows one to run commands to manipulate the contents of the editable region. Most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire line (indenting). When using contentEditable
, calling execCommand
will affect the currently active editable element.", "sections": [{"id": "Quick_Links", "title": "Document Propriet\u00e0 Document.activeElement Document.alinkColor Document.anchors Document.applets Document.async Document.bgColor Document.body Document.characterSet ParentNode.childElementCount ParentNode.children Document.compatMode Document.contentType Document.currentScript Document.defaultView Document.designMode Document.dir Document.doctype Document.documentElement Document.documentURI Document.documentURIObject Document.domain Document.domConfig Document.embeds Document.fgColor ParentNode.firstElementChild Document.forms Document.head Document.height Document.images Document.implementation Document.inputEncoding ParentNode.lastElementChild Document.lastModified Document.lastStyleSheetSet Document.linkColor Document.links Document.location Document.mozFullScreen Document.mozFullScreenElement Document.mozFullScreenEnabled Document.mozSyntheticDocument GlobalEventHandlers.onabort Document.onafterscriptexecute Document.onbeforescriptexecute GlobalEventHandlers.onblur GlobalEventHandlers.onchange GlobalEventHandlers.onclick GlobalEventHandlers.onclose GlobalEventHandlers.oncontextmenu GlobalEventHandlers.ondblclick GlobalEventHandlers.onerror GlobalEventHandlers.onfocus GlobalEventHandlers.oninput GlobalEventHandlers.onkeydown GlobalEventHandlers.onkeypress GlobalEventHandlers.onkeyup GlobalEventHandlers.onload GlobalEventHandlers.onmousedown GlobalEventHandlers.onmousemove GlobalEventHandlers.onmouseout GlobalEventHandlers.onmouseover GlobalEventHandlers.onmouseup Document.onoffline Document.ononline GlobalEventHandlers.onreset GlobalEventHandlers.onresize GlobalEventHandlers.onscroll GlobalEventHandlers.onselect GlobalEventHandlers.onsubmit Document.origin Document.plugins Document.pointerLockElement Document.popupNode Document.preferredStyleSheetSet Document.readyState Document.referrer Document.scripts Document.scrollingElement Document.selectedStyleSheetSet Document.styleSheets Document.styleSheetSets Document.title Document.tooltipNode Document.URL Document.vlinkColor Document.width Document.xmlEncoding Document.xmlVersion Metodi Document.adoptNode() Document.caretPositionFromPoint() caretRangeFromPoint Document.clear() Document.close() Document.createAttribute() Document.createCDATASection() Document.createComment() Document.createDocumentFragment() Document.createElement() Document.createElementNS() Document.createEntityReference() Document.createEvent() Document.createExpression() Document.createNodeIterator() Document.createNSResolver() Document.createProcessingInstruction() Document.createRange() Document.createTextNode() Document.createTouch() Document.createTouchList() Document.createTreeWalker() Document.elementFromPoint() Document.enableStyleSheetsForSet() Document.evaluate() Document.execCommand() Document.exitPointerLock() Document.getBoxObjectFor() Document.getElementById() Document.getElementsByClassName() Document.getElementsByName() Document.getElementsByTagName() Document.getElementsByTagNameNS() Document.getSelection() Document.hasFocus() Document.importNode() Document.loadOverlay() Document.mozCancelFullScreen() Document.mozSetImageElement() Document.open() Document.queryCommandSupported() Document.querySelector() Document.querySelectorAll() Document.registerElement() Document.releaseCapture() Document.write() Document.writeln() Inheritance: Node EventTarget Pagine correlate du DOM Attr ByteString CDATASection CharacterData ChildNode Comment CustomEvent DOMConfiguration DOMError DOMErrorHandler DOMException DOMImplementation DOMImplementationList DOMImplementationRegistry DOMImplementationSource DOMLocator DOMObject DOMParser DOMString DOMTimeStamp DOMTokenList DOMUserData DocumentFragment DocumentType Element ElementTraversal Entity EntityReference Event EventTarget HTMLCollection MutationObserver Node NodeFilter NodeIterator NodeList NonDocumentTypeChildNode ProcessingInstruction PromiseResolver Range Selection Text TextDecoder TextEncoder TimeRanges TreeWalker TypeInfo USVString UserDataHandler XMLDocument"}, {"id": "Summary", "title": "Summary"}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parametri", "title": "Parametri"}, {"id": "Commands", "title": "Commands"}, {"id": "Example", "title": "Example"}, {"id": "Browser_Compatibility", "title": "Browser compatibility"}, {"id": "Specification", "title": "Specification"}, {"id": "See_also", "title": "See also"}], "id": 149907, "review_tags": []}