Correction, I forgot some r's....

There is no way of doing that, RubParagraphDecorator lacks a method to set its 
styler variable.

If you add that, then you can do something like:
Self is a RubEditingArea

(self decoratorNamed:  #shoutStyler) styler: yourStyleclass new.

styler: aTextStyler

  styler := aTextStyler.
  styler view: self. 


Best regards,
Henrik


-----Original Message-----
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Henrik 
Nergaard
Sent: Saturday, March 19, 2016 11:00 AM
To: Pharo Development List <pharo-dev@lists.pharo.org>
Subject: Re: [Pharo-dev] How to set styler for RubEditingArea?

There is no way of doing that, RubParagraphDecorator lacks a method to set its 
style variable.

If you add that, then you can do something like:
Self is a RubEditingArea

(self decoratorNamed:  #shoutStyler) style: yourStyleclass new.

Best regards,
Henrik

-----Original Message-----
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Yuriy 
Tymchuk
Sent: Saturday, March 19, 2016 1:19 AM
To: Pharo Development List <pharo-dev@lists.pharo.org>
Subject: [Pharo-dev] How to set styler for RubEditingArea?

Hi, I have my own styler which is a subclass of SHRBTextStyler. How do I set it 
as a styler for RubEditingArea?

Cheers.
Uko


Reply via email to