Hi,

try this

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TextModel new
isCodeCompletionAllowed: false;
menuHolder: [];
openWithSpec
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The second line disabled code completion, and the third disables
right-click menu.

Disabling shortcuts may be a little more complex. From what I can tell the
underlying morph (PluggableTextMorph) has the text stored
in TextMorphForEditView, which has associated SmalltalkEditor.
For your needs you would need to change it to TextEditor, but I don't see
any easy way how to change it.

If you will not be able to find a way, please open an issue (for Pharo5),
because I think this should be possible.

Peter

On Fri, Mar 27, 2015 at 9:48 AM, Sven Van Caekenberghe <s...@stfx.eu> wrote:

> Hi,
>
> I have a question about Spec's TextModel.
> How do you use it without the assumption that it contains code ?
> I just want to show real text and not have a code menu or active coding
> shortcuts.
> It is probably me, but I can't find it.
>
> Thx,
>
> Sven
>

Reply via email to