aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/guide/html/content_editable/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/de/web/guide/html/content_editable/index.html')
-rw-r--r--files/de/web/guide/html/content_editable/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/files/de/web/guide/html/content_editable/index.html b/files/de/web/guide/html/content_editable/index.html
new file mode 100644
index 0000000000..03ab2fdfe0
--- /dev/null
+++ b/files/de/web/guide/html/content_editable/index.html
@@ -0,0 +1,52 @@
+---
+title: Content Editable
+slug: Web/Guide/HTML/Content_Editable
+tags:
+ - HTML5 Inhalt ändern editierbar
+translation_of: Web/Guide/HTML/Editable_content
+---
+<p><span class="seoSummary">In HTML5 kann jedes Element editiert werden. Mit JavaScript Event handlers können Sie Ihre Webseite in einen umfangreichen und schnellen Texteditor verwandeln. Dieser Artikel gibt einige Informationen über diese Funktion.</span></p>
+
+<h2 id="Kompatibilität">Kompatibilität</h2>
+
+<p>Content editable ist kompatibel mit folgenden Browsern.</p>
+
+<ul>
+ <li>Firefox 3.5+</li>
+ <li>Firefox for Android 19+</li>
+ <li>Chrome 4.0+</li>
+ <li>Internet Explorer 5.5+</li>
+ <li>Safari 3.1+</li>
+ <li>Opera 9+</li>
+ <li>iOS Safari 5.0+</li>
+ <li>Android Browser 3.0+</li>
+ <li>Opera Mobile 12.1+</li>
+ <li>Chrome for Android 25+</li>
+</ul>
+
+<p>Keine Unterstützung in Opera Mini.</p>
+
+<h2 id="Wie_funktioniert_es">Wie funktioniert es?</h2>
+
+<p>Ändere das {{DOMXRef("HTMLElement.contentEditable", "contentEditable")}} Attribut zu <code>true</code> in deinem HTML Element. Es kann in nahezu allen HTML Elementen genutzt werden.</p>
+
+<h2 id="Beispiele">Beispiele</h2>
+
+<p>Ein einfaches Beispiel:</p>
+
+<pre class="brush: html">&lt;div contenteditable="true"&gt;
+ This text can be edited by the user.
+&lt;/div&gt;</pre>
+
+<p>Das obige Beispiel kann direkt ausprobiert werden:</p>
+
+<p>{{ EmbedLiveSample('Beispiele') }}</p>
+
+<h2 id="Weiterführende_Informationen">Weiterführende Informationen</h2>
+
+<pre class="code">user_pref("capability.policy.policynames", "allowclipboard");
+user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org");
+user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
+user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");</pre>
+
+<p><a href="/en/Midas" title="en/Midas">How to interact with the content </a> (old IE style API) and <a href="/en/Rich-Text_Editing_in_Mozilla" title="en/rich-text editing in mozilla">here</a></p>