From 94e3767f1597835ac82361d7d04be1347fe40942 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= <aleksander.lukasz@nowoczesnapolska.org.pl> 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 @@ <button data-name="new-node" data-meta="header/" data-btn-type="cmd" class="btn btn-mini">nagÅówek</button> <button data-name="new-node" data-meta="div/p" data-btn-type="cmd" class="btn btn-mini">paragraf</button> <button data-name="new-node" data-meta="span/cite" data-btn-type="cmd" class="btn btn-mini">cytat</i></button> - <button data-name="new-node" data-meta="span/uri" data-btn-type="cmd" class="btn btn-mini">uri</i></button> + <button data-name="new-node" data-meta="span/link" data-btn-type="cmd" class="btn btn-mini">link</i></button> <select class="rng-module-documentToolbar-toolbarOption" data-option="newTag-tag"> <% var options = ['', 'section', 'header', 'div', 'span', 'aside']; %> <% options.forEach(function(option) { %> @@ -11,7 +11,7 @@ <% }); %> </select> <select class="rng-module-documentToolbar-toolbarOption" data-option="newTag-class"> - <% var options = ['', 'author', 'title', 'cite', 'cite.code', 'cite.code.xml', 'list.items', 'item', 'uri', 'p', 'footnote', 'todo', 'emp'] %> + <% var options = ['', 'author', 'title', 'cite', 'cite.code', 'cite.code.xml', 'list.items', 'item', 'link', 'p', 'footnote', 'todo', 'emp'] %> <% options.forEach(function(option) { %> <option value="<%= option.replace(/\./g, '-') %>" <% if(option==='cite') { %>selected<% } %>><%= wlxmlUtils.getClassLabel(option) %></option> <% }); %> diff --git a/src/editor/modules/nodePane/template.html b/src/editor/modules/nodePane/template.html index 55a3cc2..40db3ea 100644 --- a/src/editor/modules/nodePane/template.html +++ b/src/editor/modules/nodePane/template.html @@ -13,7 +13,7 @@ <div> <label>Klasa</label> <select class="rng-module-nodePane-classSelect"> - <% 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) { %> <option value="<%= option.replace(/\./g, '-') %>" <% if(option === '') { %>selected<% } %>><%= utils.getClassLabel(option) %></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