1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-04 07:48:06 +00:00

Restore "Add default settings for styled inline SPANs (#6877)"

This reverts commit 6f98edd6bd.
This commit is contained in:
jeremy@jermolene.com
2022-10-16 17:28:36 +01:00
parent 8f079e2d45
commit b531984f50
23 changed files with 62 additions and 5 deletions

View File

@@ -41,9 +41,6 @@ exports.parse = function() {
var node = {
type: "element",
tag: "span",
attributes: {
"class": {type: "string", value: "tc-inline-style"}
},
children: tree
};
if(classString) {
@@ -52,6 +49,9 @@ exports.parse = function() {
if(stylesString) {
$tw.utils.addAttributeToParseTreeNode(node,"style",stylesString);
}
if(!classString && !stylesString) {
$tw.utils.addClassToParseTreeNode(node,"tc-inline-style");
}
return [node];
};