Commit fa6bf019 authored by Jan Köster's avatar Jan Köster
Browse files

test

parent 9aa4694d
Loading
Loading
Loading
Loading
+12 −0
Changes for editor/widgets/textbox/textbox.cpp: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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());