Note: This PR includes a refactoring. Both issues #554 and #607 happened because of inconsistent use of functionality for selecting, sorting and rendering of text components. The code in app/lib/text turned out to unfavourable and not very object oriented. The long term goal is to remove all those classes. I removed 2 out of 3. For the future it would be great to move the remaining code of app/lib/text/renderer.rb into app/decorators/text_component.rb.
close #554 close #607
Note: This PR includes a refactoring. Both issues #554 and #607 happened because of inconsistent use of functionality for selecting, sorting and rendering of text components. The code in
app/lib/text
turned out to unfavourable and not very object oriented. The long term goal is to remove all those classes. I removed 2 out of 3. For the future it would be great to move the remaining code ofapp/lib/text/renderer.rb
intoapp/decorators/text_component.rb
.