On 27 Aug 2014, at 4:01 , Igor Stasenko <siguctua@gmail.com> wrote:
For embedding morphs into text, there's a bit more than i currently did - event handling. Right now, morphs are used to simply render them in-place, and they even not added as a submorphs, therefore no way to deliver any events to them without big troubles. The way how text layout builds (dynamically) poses certain problem on this, since it requires adding/removing submorphs depending whether they visible or not, as well as making sure their position are conform with text layout, and morphic model..
Are we talking a TextEditor anymore, or are you moving into the domain of a DocumentEditor? Wouldnât it be a better delegation of responsibility to have a text-editor dealing with nothing but text, but also accepting shapes where it is not allowed to render text (and only that), and leave compositing of textEditor and other morphs up to a DocumentEditor. IMHO, if you canât save the contents as an .rtf or something similarly simple, itâs not really a *Text*Editor anymore. Cheers, Henry