Wednesday, August 26, 2015

Re: How to combine or reduce number of <style> tag for GWT generated page

You could copy the StyleInjector class from GWT into our own project and then modify the constant StyleInjector.StyleInjectorImplIE.MAX_STYLE_SHEETS .

StyleInjector (used by CssResource) appends up to 31 <style> tags and after that searches the shortest <style> tag to append additional css. If you reduce the constant to 25 or so you always have some tags available for external use.

Alternatively create a CssResource (or TextResource + StyleInjector) for CKEditor and don't let it create style tags on its own.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment