Changes for page ContentEditable
Last modified by mflorea on 2010/07/06 16:39
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,18 +1,10 @@ 1 1 {{html clean="false"}} 2 -<style type="text/css"> 3 -span.readOnly::selection { 4 - background: #AAA; 5 -} 6 -span.readOnly::-moz-selection { 7 - background: #AAA; 8 -} 9 -</style> 10 10 <script type="text/javascript"> 11 11 function onAction(hook){ 12 12 var iframe = document.createElement('iframe'); 13 13 iframe.style.border = '1px solid black'; 14 14 iframe.addEventListener('load', function() { 15 - iframe.contentWindow.document.body.innerHTML = '<p>before<span contentEditable="false" onclick="this.className=\'readOnly\'">text</span>after</p>'; 7 + iframe.contentWindow.document.body.innerHTML = '<p>before<span contentEditable="false" class="readOnly" onclick="this.className=\'readOnly readOnly-selected\'">text</span>after</p>'; 16 16 //iframe.contentWindow.document.designMode = 'on'; 17 17 iframe.contentWindow.document.body.contentEditable = true; 18 18 iframe.focus();
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +long - Code
-
... ... @@ -1,0 +1,10 @@ 1 +span.readOnly-selected::selection { 2 + background: #AAA; 3 +} 4 +span.readOnly-selected::-moz-selection { 5 + background: #AAA; 6 +} 7 +span.readOnly { 8 + border: 1px dashed #777; 9 + padding: 3px; 10 +} - Name
-
... ... @@ -1,0 +1,1 @@ 1 +ContentEditable - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +onDemand