Loading editor/widgets/textbox/textbox.cpp +12 −0 Changes for editor/widgets/textbox/textbox.cpp: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -584,6 +584,18 @@ extern "C" { if (!underlineColor.empty()) style += " text-decoration-color: " + underlineColor + ";"; if (hidden) style += " display: none;"; // Underline color for richtext content: <u> tags and inline-styled spans // reset text-decoration-color via the shorthand, so a targeted rule is needed. if (!underlineColor.empty()) { libhtmlpp::HtmlElement ulStyle("style"); std::string ulRule = "." + responsiveClass + " u," " ." + responsiveClass + " [style*=\"underline\"]" "{ text-decoration-color: " + underlineColor + " !important; }"; ulStyle.appendChild(libhtmlpp::TextElement(ulRule.c_str())); el.appendChild(ulStyle); } box.setAttribute("style", style.c_str()); box.setAttribute("class", responsiveClass.c_str()); Loading Loading
editor/widgets/textbox/textbox.cpp +12 −0 Changes for editor/widgets/textbox/textbox.cpp: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -584,6 +584,18 @@ extern "C" { if (!underlineColor.empty()) style += " text-decoration-color: " + underlineColor + ";"; if (hidden) style += " display: none;"; // Underline color for richtext content: <u> tags and inline-styled spans // reset text-decoration-color via the shorthand, so a targeted rule is needed. if (!underlineColor.empty()) { libhtmlpp::HtmlElement ulStyle("style"); std::string ulRule = "." + responsiveClass + " u," " ." + responsiveClass + " [style*=\"underline\"]" "{ text-decoration-color: " + underlineColor + " !important; }"; ulStyle.appendChild(libhtmlpp::TextElement(ulRule.c_str())); el.appendChild(ulStyle); } box.setAttribute("style", style.c_str()); box.setAttribute("class", responsiveClass.c_str()); Loading