From 94e3767f1597835ac82361d7d04be1347fe40942 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 19 Dec 2013 12:49:26 +0100 Subject: [PATCH] wlxml/editor: rename class uri to link --- src/editor/modules/documentCanvas/nodes.less | 2 +- src/editor/modules/documentToolbar/template.html | 4 ++-- src/editor/modules/nodePane/template.html | 2 +- src/wlxml/wlxml.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) 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'}} } }; -- 2.20.1