Posts

Showing posts from January, 2024

Word Wrap Html Content In Vf Page(PDF)

 public class convertTableResizingCtrl {     final static Integer LENGTH = 7;          public static string getHtml(String htmlContent) {          //String html2 = '<div style="width: 100% !important"> <h1><br data-cke-filler="true"></h1> <p data-placeholder=""> <span style="background-color: rgb(255,255,255); color: rgb(24,24,24);">{{{TableStarted___OpportunityLineItem}}}</span> </p> <figure class="table ck-widget ck-widget_with-selection-handle" contenteditable="false"> <div class="ck ck-widget__selection-handle"></div> <table style="background-color: rgb(255, 255, 255); border: 1px solid black; border-collapse: collapse; margin-left: auto; margin-right: auto;"> <thead> <tr> <th style="width: 80px; border: 1px solid black; padding: 0.5rem; overflow-wrap: break-word; word-break: break-all;" role="textb...