From: Aleksander Łukasz Date: Thu, 19 Dec 2013 11:49:26 +0000 (+0100) Subject: wlxml/editor: rename class uri to link X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/94e3767f1597835ac82361d7d04be1347fe40942?hp=ab6c87178faf8a1c3a783a241dfbdd987bae604c wlxml/editor: rename class uri to link --- diff --git a/src/editor/modules/documentCanvas/nodes.less b/src/editor/modules/documentCanvas/nodes.less index 35c7ece..f41363b 100644 --- a/src/editor/modules/documentCanvas/nodes.less +++ b/src/editor/modules/documentCanvas/nodes.less @@ -63,7 +63,7 @@ padding: 10px; } -[wlxml-class|="uri"] { +[wlxml-class|="link"] { color: blue; text-decoration: underline; } diff --git a/src/editor/modules/documentToolbar/template.html b/src/editor/modules/documentToolbar/template.html index f91e1e8..f0a3682 100644 --- a/src/editor/modules/documentToolbar/template.html +++ b/src/editor/modules/documentToolbar/template.html @@ -3,7 +3,7 @@ - + - <% var options = ['', 'author', 'title', 'comment', 'cite', 'cite.code', 'cite.code.xml', 'list.items', 'list.items.enum', 'item', 'uri', 'p', 'footnote', 'todo', 'emp'] %> + <% var options = ['', 'author', 'title', 'comment', 'cite', 'cite.code', 'cite.code.xml', 'list.items', 'list.items.enum', 'item', 'link', 'p', 'footnote', 'todo', 'emp'] %> <% options.forEach(function(option) { %> <% }); %> diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 7f6e931..820b95f 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -286,8 +286,8 @@ $.extend(WLXMLDocument.prototype, { }); var wlxmlClasses = { - 'uri': { - attrs: {uri: {type: 'string'}} + 'link': { + attrs: {href: {type: 'string'}} } };