Commit b00617cf authored by duke's avatar duke

tiny

parent 80b98080
...@@ -24,9 +24,9 @@ $(function () ...@@ -24,9 +24,9 @@ $(function ()
theme: "modern", theme: "modern",
language: "ru", language: "ru",
schema: "html5", schema: "html5",
custom_elements: "emstart,emend,header,main,span,icon,uibutton,uiinfotile,template,ui-button,ui-infotile", custom_elements: "emstart,emend,header,main,span,icon,template,info-tile,app-button",
valid_children: '+a[div]', valid_children: '+a[div]',
extended_valid_elements: "span[id|name|class|style],i[id|name|class|style],ul[id|name|class|style],li[id|name|class|style],script[type|src],style,icon[*],uibutton[*],uiinfotile[*],ui-button[*],ui-infotile[*],template[*]", extended_valid_elements: "span[id|name|class|style],i[id|name|class|style],ul[id|name|class|style],li[id|name|class|style],script[type|src],style,icon[*],info-tile[*],app-button[*],template[*]",
height: '350px', height: '350px',
menubar: "edit insert view format table tools", menubar: "edit insert view format table tools",
plugins: [ plugins: [
...@@ -52,11 +52,12 @@ $(function () ...@@ -52,11 +52,12 @@ $(function ()
return; return;
} }
for (const tag of ['UIButton', 'UIInfoTile']) { for (const tag of ['InfoTile', 'AppButton']) {
content = content.replace( content = content.replace(
new RegExp(`\\b${tag}\\b`, 'g'), new RegExp(`\\b${tag}\\b`, 'g'),
tag.replace( tag.replace(
/(UI)([a-zA-Z])/g, /([a-z])([A-Z])/g,
'$1-$2' '$1-$2'
).toLowerCase() ).toLowerCase()
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment