Select and style part of the content in a cell

Posted by: adisa.craig on 3 December 2024, 11:49 pm EST

    • Post Options:
    • Link

    Posted 3 December 2024, 11:49 pm EST - Updated 3 December 2024, 11:54 pm EST

    Is there a way to add formatting to part of the content in a cell directly. similar to how it is done in Excel? By simply selecting part of the content add adding bold or italic (as seen in image)

  • Posted 4 December 2024, 6:51 am EST - Updated 4 December 2024, 6:57 am EST

    Hi

    SpreadJS supports the ability to format specific portions of cell content using its Rich Text feature. However, unlike Excel, applying rich text formatting requires opening the Rich Text Dialog box. Directly selecting a portion of the text in the cell and applying styling options will modify the style of the entire cell content, not just the selected part.

    To add rich text formatting to specific parts of a cell’s content, please follow the steps demonstrated in the accompanying GIF.

    Please refer this documentation for adding the RichText via code https://developer.mescius.com/spreadjs/docs/features/cells/SettingRichTextCell#site_main_content-doc-content_title.

    Rich Text Demo: https://developer.mescius.com/spreadjs/demos/features/cells/basic-rich-text#demo_source_name

    Hope this works for you!

    Best Regards,

    Ankit

  • Posted 13 December 2024, 2:29 pm EST

    Hi Ankit, can you show within a jscodemine how richtexteditor can be imported via npm, I have been trying to add the necessary packages to my package.json file and it keeps throwing errors and making me add other packages such as @grapecity/spread-sheets-barcode, @grapecity/spread-sheets-languagepackages and @grapecity/spread-sheets-io

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels