RichEditableText  that contains readonly parts of text in Flex 4.1

Hi!
Is there a way to make parts of text readonly in a RichEditableText ?
What I actualy want is to be able to append words that would act as a char, meaning the user won't be able to modify the word and if he tries to delete it , the whole word will be deleted.
I've tried to search for the 'editable' properties on the elements from a TextFlow or  on a TextLayoutFormat but there's no such thing ....
The other solution I thought would be to save the position for the readonly words, and on each text change update positions and check if the editing affects any readonly word. The problem is that I fear this solution  would add a semnificant delay on editing .
Can you please point me to a solution?
Thanks!

Just in case someone else is interested in this behanior,  I've choose to implement this useing InlineGraphicElements. I've added the readonly text inside a Sprite useing  a TextField and then added the Sprite as source for a new InlineGraphicElement.  This asured the wanted  functionality but I had problems with makeing the graphic text look like the one in the RichEditableText because I was useing embeded fonts as CFF that did not work for the Textfield.
I hope this helps !

Similar Messages

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • How can I edit an InDesign file that contains right-to-left text (arabic, hebrew...) with InDesign CC?

    With previous CS versions, there was a special ME (middle east) version of InDesign that had all the necessary right-to-left functions. Is there a CC ME version, or is there another solution?

    So this comes at no extra cost to the CC subscription?
    Yes
    And can it open older files that were created with Indesign CS5 ME for example?
    Yes
    Add to that you can also download and install indesign cs6 version
    Download InDesign CS6 from CC
    http://forums.adobe.com/message/5485418#5485418

  • I have tried to download an audiobook that has Two parts.  The second part of the book downloaded.  But the First point did not.  I keep getting "Part 1 could not download at this time".  How can I get it to download?

    I have tried to download an audiobook that contains Two Parts.  The second part was successful in downloading.  However, the first part was not.  I keep getting "Part 1 could not download at this time".  I should have enough space for the download.  Any suggestions of what I can do?

    Answered in the other thread you posted in:
    i am trying to download new software and my mac keeps asking for the administrator name and password... i enter my apple…
    Please don't post in more than one place. It can lead to people wasting their time answering a question which has already been answered elsewhere.

  • How can I find an ID file that contains a text...?

    I've been working with InDesign for a long time. So, I have a lot of .indd files, from version 1 up to CS3.
    I need to find a file(s) that contains a specific text. E.g. the name of a person, that I'm sure is somewhere in my thousands of ID files.
    It's impossible to open all the files until I locate that text.
    In Windows Explorer, there's a way to search a word or phrase in a file, but it only returns doc, txt, rft, and other text files, even pdf. But not indd.
    Can somebody help me, please?
    Thanks,
    Hirao

    Have you tried changing the extension on your .indd files to .txt? It's
    a binary format, but there's a lot of plain text in there. The name
    you're looking for, or part of it, is probably in there somewhere.
    Search for the shortest possible text string. Some words are not continuous.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Is there a way to select a document that contains a word not followed by a particular word in full text?

    I have a table named Documents that has Content field full text indexed
    Now i need to create a query in such a way that the query should return docs that have at least one word "hello" that does not have word "world" following it.
    --sth like
    select content from documents
    where contains(Content,N'hello(not followed by word "world")')
    And the result should be
    "hello" -- since this does not have world following hello in it"
    "hello friend and hello world" -- this document has word hello that is not followed by world it it"
    Can a full text query be formulated in a way to achieve above results? If so how?? I want to avoid parsing Content manually as much possible as I can.

    Hi Mokchhya,
    According to your description, the issue regards SQL Server Search, I will help you move the question on the related forums, and It is appropriate and more experts will assist you.
    In addition, I do a test. If you want to get the results which contains ‘hello’ characters and not contains’ world’ characters. I recommend you use NOT on any boolean expression. For example, if you create full test catalog and full test index. When you
    need to find the document records who has “hello” in their content, and does not have “ world” in content, CONTAINS( ) is takes one keyword to match with the records.
    select * from <database>.<schema>.<table>
    where contains (Name, 'hello') and not contains (Name, 'world')
    For more information, see:
    http://blog.sqlauthority.com/2008/09/05/sql-server-creating-full-text-catalog-and-index/
    if you don’t use full text search, you can use Like with wildcarding to scan a column. For example,
    ;With cte As
    (select * from <database>.<schema>.<table>
    Where name like ‘hello%’
    select * from cte
    where name not like ‘%world’
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Copy and paste text that contains 1/2

    '''ALL''' text from any Firefox webpage that contains the character "1/2"… when pasted into a word processing document (Appleworks v. 6.2.9, in this case) inserts MULTIPLE 1/2 spaces.
    All individual text characters are thus separated by two (2) 1/2 spaces and word spacings are three (3) 1/2 spaces.

    The way to do it in previous versions (at least in version 9) was by
    right-clicking the field and selecting Duplicate. This created copies of the
    fields in the same place as the original, but also with the same name, and
    therefore the same value. You will need to rename them if you want them to
    be unique. If you need to do this very often, a script might be a better
    solution.

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • Extract node(s) that contain a particular text

    Hi,
    I have a XML document (stored in CLOB) and I want to search for a text within the document and I want it to return ALL nodes that contain that text (%text%).
    One more thing: I don't know the xml structure.
    Any idea?

    I want it to return ALL nodes that contain that text (%text%).Hope this gives you the clue:
    SQL> with t as (
      select xmltype('<a><b>Some text</b><c>Not a test</c><d>Some other text</d></a>') xml from dual
    select xmlquery ('//*[ora:matches(text(),"text")]' passing t.xml returning content) matches from t t
    MATCHES                                  
    <b>Some text</b><d>Some other text</d>   
    1 row selected.

  • Copy Paste text that contains cross-references destroys them

    Hi folks,
    Using ID CS 5.5.
    Working on a book file that contains ca. 30 documents.
    Copying (or cutting) and pasting any text that includes a cross-reference to another document in the book breaks the cross-reference.  This happens even if pasting directly back into the same location.  Cross-references to locations within the same document are not affected.
    Is this a known issue?  Is there some kind of work around?  It seems like too big a bug to not already be solved.
    Thanks.
    EDIT: working on this further, I realize it's actually much, much worse than I've described.  Copying and pasting crossrefs across documents can sometimes destroy all cross refs in all documents in the book.

    painstakingly change each setting on the control tab.
    Painstakingly is your only option other than using something like this: http://www.xmedit.com/
    -DH

  • How to parse text file (.eml) to get index of line, that contains Subject, From field, and base64 decoded Body

    Hello, Dear Colleagues.
    Help me please with next deal.
    As input I have .eml file:
    x-sender: [email protected]
    x-receiver: ***************************
    Received: from ***** with Microsoft SMTPSVC(7.5.7601.17514);
    Fri, 20 Mar 2015 12:43:03 +0200
    In-Reply-To: <********@LocalDomain>
    To: *****************************
    Bcc:
    Subject: Incident ID#: 117 Something wrong, something right, something missing
    Message-ID: <*****************************@LocalDomain>
    From: [email protected]
    Date: Fri, 20 Mar 2015 12:42:55 +0200
    Content-Type: multipart/related; boundary="=_related ********************"
    References: <*******************************C@LocalDomain>
    MIME-Version: 1.0
    X-KeepSent: ****************************; name=$KeepSent; type=4
    X-Mailer: Lotus Notes Release 8.5.2FP3 July 11, 2011
    X-Disclaimed: 54023
    Return-Path: [email protected]
    X-OriginalArrivalTime: 20 Mar 2015 10:43:03.0590 (UTC) FILETIME=[A48E9C60:01D062FA]
    --=_related **********************=
    Content-Type: multipart/alternative; boundary="=_alternative &**************"
    --=_alternative ******************
    Content-Type: text/plain; charset="KOI8-R"
    Content-Transfer-Encoding: base64
    U29tZXRoaW5nIHdyb25nLCBzb21ldGhpbmcgcmlnaHQsIHNvbWV0aGluZyBtaXNzaW5nDQpTb21l
    dGhpbmcgYmxhY2ssIHNvbWV0aGluZyBsaWdodCwgc29tZXRoaW5nIGRpZmZlcmVudA0KRG9uJ3Qg
    eW91IGV2ZXIgZmVlbCB5b3UgbmVlZCB0byBzcGVhayB0byBtZSB0aGF0IHdheT8NClNvbWV0aGlu
    ZyBibGFjaywgc29tZXRoaW5nIGxpZ2h0LCBzb21ldGhpbmcgZGlmZmVyZW50DQpTb21ldGhpbmcg
    d3JvbmcsIHNvbWV0aGluZyByaWdodCwgc29tZXRoaW5nIG1pc3NpbmcNCkRvbid0IHlvdSBldmVy
    IGZlZWwgeW91IG5lZWQgdG8gc3BlYWsgdG8gbWUgdGhhdCB3YXk/IA==--=_alternative ******************
    Content-Type: text/plain; charset="KOI8-R"
    Content-Transfer-Encoding: base64
    Because position of lines changes due to email type, as output I want to get:
    1). index of line that contains: Subject, i.e. "Subject: Incident ID#: 117 Something wrong, something right, something missing"
    2). index of line that contains "From", i.e. "From: [email protected]"
    3). base64 - decoded text (body of email)
    Thanks for your help.
    Have a nice day.

    jrv,
    your script, unfortunately, always return "String not found".
    Because you file is probably not constructed the same as the copy you posted.  I was just showing you how.  You will need to adjust to the actual file.
    Outlook can open and convert  EML files. 
    ¯\_(ツ)_/¯

  • When I start firefox browser an erroe message appear that contain this text "the procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll" I am using windows XP

    when I start firefox browser an erroe message appear that contain this text "the procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll" I am using windows XP in English
    == This happened ==
    Every time Firefox opened
    == start mozila firefox

    This issue can be caused by a problem with the file c:\windows\system32\dwmapi.dll
    The file dwmapi.dll is a Vista file and should not be present in Windows XP.
    See also [tiki-view_forum_thread.php?forumId=1&comments_parentId=417674]

  • Is there any way to display a file that contains text and pictures

    Hi all,
    I was wondering if java has any way to display a file that contains both text and pictures. I have tried using the RTFEditorKit and using an RTF file and it only diplays the text contained in the file and omits the pictures all together.
    code:
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.text.rtf.RTFEditorKit;
    public class Test
         JScrollPane scroll;
         JEditorPane edit=new JEditorPane();
         RTFEditorKit kit=new RTFEditorKit();
         public Test()
              final JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         edit.setEditorKit(kit);
         edit.setEditable(false);
         try
              kit.read(new FileReader(new File("Installation.rtf")),edit.getDocument(),0);
              catch(Exception e)
                   JOptionPane.showMessageDialog(null, e);
         frame.getContentPane().add(new JScrollPane(edit));
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              frame.setBounds(0,0,screenSize.width, screenSize.height);
         frame.show();
         public static void main(String[] args)
    new Test();
    Please help!
    thanks in advance,
    Denise

    Not good as that usually means the project itself was corrupt.
    Any chance you sync'd to Creative Cloud? That's the only way I know of that backs up your PS Touch (PSDX) files.

  • Help! I can send emails from my ipad2 that contain text - but they're unable to send if I attach any pictures! So frustrating! I have an iPhone

    Help! I can send emails from my ipad2 that contain text - but they're unable to send if I attach any pictures! So frustrating! I have an iPhone

    I have an iPhone &amp; can send pictures via email without issue but I can't on ipad2. Any ideas why?? Thx!

  • I cannot send a photo nor a text message that contains a photo

    I cannot send a photo nor a text message that contains a photo from my iphone.  My cellular is on & my Wi-Fi.  I have tried sending a photo with both on, WiFi off & cellular on, and WiFi on with cellular on.  What else can I try?

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go. (No data loss)

Maybe you are looking for

  • Error in starting the database

    when i shut down my database,there is no error but as i startup my database it is giving the following errors ORA-24324: service handle not initialized ORA-01041: internal error. hostdef extension doesn't exist ORA-12514: TNS:listener could not resol

  • Can't get Leopard to install on iMac G5

    Can't get Leopard to install on iMac G5 Hi folks, I'm trying to install Leopard on my 20" iMac G5, but the install never completes. I get an error related to "essential package" failing or some such. I'm using a retail copy of Leopard. I've read that

  • Macbook - TV

    Hey guys, just wondering what cords i would need to connect my new macbook to my tv (has the 3 audio/visual input things on the front). Amd can i pick these up at any electronics store?

  • How I can attach files on a Web Form

    Hi everybody, When I add a document on a web form, the document I have to attach from the workspace directory... the server is on Linux ... instead of put the files on linux server, exists the possibility to parameterize a local directory to be easie

  • Editing in TextEdit

    In the Edit > Insert menu, inserting a Line Break and a Paragraph Break both work, but they seem to do the same thing - insert a line break. Insert Page Break does nothing at all; it seems inop, no matter how I try to use it. Is there something I'm m