Paragraph style copied in HTML

This commit is contained in:
Yousef Khadadeh 2025-11-11 12:16:11 +03:00
parent 9cdac48374
commit c7cea45e9c
3 changed files with 47 additions and 7 deletions

View file

@ -101,6 +101,11 @@ bool TextBoxEditTool::edit_gui(const std::shared_ptr<DrawComponent>& comp) {
a->textBox->set_text_style_modifier_between(a->cursor->selectionBeginPos, a->cursor->selectionEndPos, currentMods[TextStyleModifier::ModifierType::COLOR]);
}
if(t.gui.text_button_wide("print text", "Print HTML Selection")) {
std::cout << "-----HTML-----\n" << a->textBox->get_rich_text_data_between(a->cursor->selectionBeginPos, a->cursor->selectionEndPos).get_html() << std::endl;
}
t.gui.pop_id();
if(a->textBox->inputChangedTextBox)