http://www.mediawiki.org/wiki/Special:Code/MediaWiki/92008

Revision: 92008
Author:   tparscal
Date:     2011-07-12 21:07:11 +0000 (Tue, 12 Jul 2011)
Log Message:
-----------
Added toolbar

Modified Paths:
--------------
    trunk/parsers/wikidom/demos/es/index.html
    trunk/parsers/wikidom/lib/es/es.Surface.css

Modified: trunk/parsers/wikidom/demos/es/index.html
===================================================================
--- trunk/parsers/wikidom/demos/es/index.html   2011-07-12 21:02:48 UTC (rev 
92007)
+++ trunk/parsers/wikidom/demos/es/index.html   2011-07-12 21:07:11 UTC (rev 
92008)
@@ -4,9 +4,45 @@
        <head>
                <title>EditSurface Demo</title>
                <link rel="stylesheet" href="../../lib/es/es.Surface.css">
+               <style>
+                       body {
+                               font-family: "Arial";
+                               font-size: 1em;
+                               width: 100%;
+                               margin: 0;
+                               padding: 0;
+                               overflow-y: scroll;
+                       }
+                       #es-toolbar,
+                       #es-editor {
+                               border: solid 1px silver;
+                               margin-left: 12.5%;
+                               margin-top: 1em;
+                               width: 75%;
+                       }
+                       .es-toolbarTool {
+                               float: left;
+                               width: 23px;
+                               height: 23px;
+                               margin: 0.5em 0 0.5em 0.5em;
+                       }
+                       .es-toolbarTool img {
+                               border: solid 1px white;
+                               cursor: pointer;
+                       }
+                       .es-toolbarTool img:hover {
+                               border-color: silver;
+                       }
+               </style>
        </head>
        <body>
-               <div id="es"></div>
+               <div id="es-toolbar" class="es-toolbar">
+                       <div class="es-toolbarTool" id="es-toolbar-bold"><img 
src="images/bold.png"></div>
+                       <div class="es-toolbarTool" id="es-toolbar-italic"><img 
src="images/italic.png"></div>
+                       <div class="es-toolbarTool" id="es-toolbar-link"><img 
src="images/link.png"></div>
+                       <div style="clear:both"></div>
+               </div>
+               <div id="es-editor"></div>
                
                <!-- EditSurface -->
                <script type="text/javascript" 
src="../../lib/jquery.js"></script>
@@ -51,7 +87,7 @@
                                                { 'text': "Text might 
have\ttabs\tin it too. Not all text will end in a line breaking character" }
                                        ])
                                ]);
-                               var surface = new Surface( $('#es'), doc );
+                               var surface = new Surface( $('#es-editor'), doc 
);
                                
                                $(window).resize( function() {
                                        surface.render();

Modified: trunk/parsers/wikidom/lib/es/es.Surface.css
===================================================================
--- trunk/parsers/wikidom/lib/es/es.Surface.css 2011-07-12 21:02:48 UTC (rev 
92007)
+++ trunk/parsers/wikidom/lib/es/es.Surface.css 2011-07-12 21:07:11 UTC (rev 
92008)
@@ -1,19 +1,3 @@
-body {
-       font-family: "Arial";
-       font-size: 1em;
-       width: 100%;
-       margin: 0;
-       padding: 0;
-       overflow-y: scroll;
-}
-
-.editSurface {
-       border: solid 1px silver;
-       margin-left: 12.5%;
-       margin-top: 1em;
-       width: 75%;
-}
-
 .editSurface-input {
        position: absolute;
        z-index: -1;


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to