How could I edit correctly my bullets in my html editor

I try to manage bullets in a simple HTML Editor.
To do that, I used two differents methods but they both failed.
When I look at the generated source code, my tags correcty exist but in the HTMLDocument, I can't see the text well formatted.
Is anybody could help me?
Thanks a lot
Here is the two methods I chose:
The first one was:
MutableAttributeSet attr = new SimpleAttributeSet();
attr.addAttribute(StyleConstants.NameAttribute, style);
int xStart = m_HTMLEditor.getSelectionStart();
int xFinish = m_HTMLEditor.getSelectionEnd();
m_doc.setParagraphAttributes(xStart, xFinish - xStart, attr, false);
And the second one was:
try{
     MutableAttributeSet attr = new SimpleAttributeSet();
     attr.addAttribute(StyleConstants.NameAttribute, HTML.Tag.LI);
     m_doc.insertString(m_HTMLEditor.getSelectionStart(), m_HTMLEditor.getSelectedText(), attr);
catch(Exception ex) {                         IdeMessageManagerAccess.printMessage(IdeMessageType.INFORMATION, "An exception occured during the inserting bullet");
}

Hi,
implementing list formatting for HTMLDocuments is complex. To format an arbirtrary text portion as list, <ul> or <ol> and <li> tags have to be added to respective text.
As one can not predict if a selected text portion has already list formatting or contains a mixture of list and plain text formatting, there are a lot of cases to implement.
My proposal is to just copy a working implementation as it is present in application SimplyHTML at http://www.lightdev.com/template.php4?id=3
Ulrich

Similar Messages

  • How can I edit a sub key in a plist file?

    For example, how could I edit the Name key in the array?
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Test</key>
    <array>
    <dict>
    <key>IPAddress</key>
    <string>xxxx</string>
    <key>Name</key>
    <string>yyyy</string>
    </dict>
    </array>
    </dict>
    </plist>

    hi,
    i guess this article should answer your question
    http://www.mactech.com/articles/mactech/Vol.22/22.03/StoringandAccessingData/ind ex.html
    quote for items:
    set theOutputFolder to path to desktop folder as string
    set thePListPath to POSIX path of (theOutputFolder & "myPListFile.plist")
    tell application "System Events"
    tell property list file thePListPath
    tell contents
    set value of property list item "keyName" to "New Key Value"
    end tell
    end tell
    end tell
    quote for sub-items:
    set theOutputFolder to path to desktop folder as string
    set thePListPath to POSIX path of (theOutputFolder & "myPListFile.plist")
    tell application "System Events"
    tell property list file thePListPath
    tell contents
    set value of property list item "subKeyName1" of property list item
    "keyName3" to "New Key Value"
    end tell
    end tell
    end tell
    but reading the full article would be the best way to go.
    feel free to ask further if it wasn't helpful
    Best regards
    fidel

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • How do I edit a merged clip in Audition, that was created in premiere to correct the synchronisation, and have it all updated to the premiere clip?

    Hello,
    How do I edit a merged clip in Audition, that was created in premiere to correct the synchronisation, and have it all updated to the premiere clip?
    I have tried several tutorials but these either:
    - show correction in premiere sequence (which is not practical; given the huge number of files we have)
    - or show the editing in audition of a sequence, not the clip.
    We have started merging audio and video (removing the original audio during merge) but some of the merged clips are out of sync, so we need to correct manually, BUT we want to correct the merged clip, which may or may not end up being used, so we do not want to take it to the sequence as all we are doing is prepare the synced files for editing.
    Any idea how I can correct the synchronisation in Audition?, when I right click on clip and select "Edit in Adobe Audition" I get a list of files but not a multitrack session where I can see my video and audio tracks.

    if premiere pro doesn't sync your footage properly, and you have a huge number of files, you may want to look at pluraleyes.  there is a demo, and if it works properly, it would save you time to have it done right the first time, instead of tracking down random merged clips with bad sync.
    premiere will either export a complete sequence or "edit clip in audition". the edit clip will create a copy of the original audio and open that in audition. there is no dynamic link, its just an audio file open in two programs at the same time.  since there is no dynamic link, its not possible to bring merged clips into audition.
    Adobe Premiere Pro Help | Synchronizing audio and video with Merge Clips
    Once created, the merged clip cannot be re-synchronized, or adjusted. You must make a new merged clip.
    Merged clip audio results in mono track audio only.Final Cut Pro XML and AAF interchange formats are not supported.
    this doesn't give me much hope that audition or any other adobe program outside of premiere will help you fix the problem merged clips.

  • I opened a word doc in pages but when I went to edit the doc all I could do is activate boxes of text....no cursor or keyboard showed up.  How do I edit an imported doc?

    I imported and opened a word doc to pages.  When I went to edit all I got was highlighted boxes of text....no cursor or keyboard.  How do I edit an imported doc in Pages?

    No, it's a document I created and it's not locked.   I did it at work and sent it to Pages so I could work at home.   It opens but I can't type or edit.

  • Could you please correct me - how to use

    Could you please correct me how can I use category in WHERE condition ?
      LOOP AT gt_zgfld_prctr
         INTO wa_zgfld_prctr
       <b>WHERE category CO ’LIMIT_PRCTR%’</b>.
    Thanks,

    Hi,
    Please try this.
    ranges: r_category for gt_zgfld_prctr-category.
    r_category-sign = 'I'.
    r_category-option = 'CP'.
    r_category-low = 'LIMIT_PRCTR%'.
    append r_category.
    LOOP AT gt_zgfld_prctr
    INTO wa_zgfld_prctr
    WHERE category IN r_category.
    ENDLOOP.
    Regards,
    Ferry Lianto

  • How could I be sure the download of iAS is correct?

    I have been trying to install iAS on Windows 2000 server with a fix IP and
    appended domain name. The setup run nicely and said complete. However, there
    is no files in the directory after installation. Ray, mentioned that it
    could be due to the quality of download.
    I have a cable modem here which I reckon has a very stable connection to the
    internet. How could I know if the testdrive file I download is in good
    condition?
    Any assistance is very appreciated. Thanks in advance.

    Hi,
    Unfortunately there is no way as of now to detect if the download is successful. However please ensure correct values on static ip and the DNS suffix and this error is common for test drive version download. The only solution is try to download again when you think the network traffic would be lesser and I'm sure that you will succeed. Good Luck on iAS.
    Regards
    RG

  • I purchased an $89.99 pack 2 days ago thinking I could use this to edit PDFs. How do I edit PDF document using this package?

    I purchased an 89.99 Acrobat pack but can't figure out how to edit PDF's which is the reason I made the purchase. How do I edit with this software?

    Hi peggyb50904266,
    I'm sorry for the confusion: Adobe PDF Pack allows you to create and combine PDF files, but not edit them. To do that, you need to use Acrobat. If you'd like, we can switch your PDF Pack subscription for an Acrobat Pro or Standard subscription.
    Best,
    Sara

  • How do I Edit an Existing PDF Form Without Losing Form Functionality

    I'm brand new to Acrobat but familiar and proficient with Flash, PhotoShop Premiere Pro, After Effects, Dreamweaver, Fireworks etc.
    The company I work for sells office supplies. We sell 57 distinct items.  We have Acrobat 9.  I am designing a PDF order form with fields that can be emailed to our clients as an attachment.  They fill out the form, it calculates the total, they send it back to us, we fill and ship the order.  Basic and straightforward.
    I can add form fields to my order/pricelist... not a problem.  The question is:
    Once I have brought a PDF into Acrobat and add 57+ fields and calculations, which is a time consuming process, how do I edit an item price at a later date, if someone in the company decides to make a change to our pricing?
    See..., If I save the original Microsoft Excel document as a PDF, Acrobat can't edit the text for some reason.  Something to do with "Renderable Text".  Now if I open the PDF saved from Microsoft Excel in Adobe Illustrator, I can use the text tool to make changes. That doesn't help me... just saying. Why can't I edit "Renderable Text" with the Acrobat Text Tool?  Someone in a forum stated that Acrobat is NOT a word processing program!  If that is an accurate statement, it would appear that Acrobat can at least work with base PDF documents to make certain types of modifications and add functionality.  Is that correct?
    Here's the problem.  I create a PDF with form functionality.  Everything works great.  The boss says, I want to change the price of the scissors.  I can't change the text in Acrobat because of the "Renderable Text" nonsense.  Does this mean that I have to re-apply all of the form fields and calculations to the new base PDF document every time there is a minor change?  I know there has to be a simple work around.  Should I upgrade to a newer version of Acrobat?
    Is it possible to save the original existing form functionality as a layer or overlay to be applied to the new modified base PDF document?   Kind of like so many other Adobe products do including PhotoShop, Fireworks, Premiere Pro, After Effects, Flash etc., so that all of the form functionality can be applied in one big chunk?  Premiere Pro has the time-saving feature of "Paste Attributes".  It's a real time saver.
    It may be simpler to just direct me to a video that goes through the process of creating a PDF order form with fillable fields that multiplys quantity by unit price and totals one column.
    I already created a prototype of the form in PhotoShop which can be saved as a PDF.  The finished order document appearance has 95 horizontal 3px wide lines and 6 vertical 3px lines, kind of like what one might expect to see in an Excel spread sheet.  The form also contains some graphics and unconventional text areas that acrobat could overlay text fields and everything would be fine.
    With these great number of horizontal dividing lines, It doesn't seem practical or even possible to create the basic layout in Acrobat.  As I originally stated, I'm new to Acrobat and would like suggestions for a workflow that enables easy editing of an existing PDF document with form fields.  I want to avoid the monumental task of re-doing all of the fields and calculations.

    For what you are trying to do that is probably what you want -- Replace Pages. There are a few more issues that you need to be aware of since this is a business form. If customers are using Reader XI, it is not an issue.
    On the renderable text, can you see the text list when you look at the font tab in the document properties (ctrl-D)? If not, they you do not really have fonts to edit. This may be the type of fonts you used in the original or the way in which you did the conversion to PDF. You need to have fonts that are on your system and then be sure to embed them (otherwise others may not be able to read them because of different OS or such).
    As to e-mailing the form, that is fine (though there are sometimes problems with various clients and PDFs -- but usually on the sending end).
    For collecting the data you may want to try a different route. For users of Reader XI, they can save the form with the data. Prior versions could not do that unless you enabled the form for Reader. However, this latter process has a 500 form use limit -- A license issue. If the data is submitted, then it does not make a difference. The folks with Reader XI can still save the form with the data, others will have to print a copy for their records.
    The data can be imported to the form on your end and so you would have the exact same results as what was filled out. However, the submission process should be set up to submit to a web script for your receipt and not use mailto. The latter has problems that you have no control over due to proper operation with the mail client on the user machine. Typically the mail client must be the default and use MAPI. In any case, it is not reliable (not for business use). So submission to a web script is useful. The data in AcroForms would be of the type FDF (or possibly XFDF). If for some reason use created the form with Designer, that limit any editing in Acrobat since it is no longer a real PDF, but an XML container that Acrobat and Reader can display and interact with, but not change. Again, submission to a web script is still preferred.
    For dealing with a web script and some coding for various languages, you can check out the FDF Toolkit. It has been around a while, but should still handle the CGI needs of the submission. In addition, it has tools for adding the data to a database and other typical operations for data collection. You can save the FDF files and import them to the form and deal with the data there also.
    The use of Replace pages would do the job if all your form fields will still need to be in about the same location. Form fields are mark up and the pages are referred to as the document. Thus the replace pages will just original page and leave all the form fields. You will still need to go back and fix the value within the fields themselves, but that is a field edit.

  • How can I edit the way autodiscover.xml behaves in SBS 2008 and 2011?

    I have autodiscover working correctly on a few SBS 2008 and SBS 2011 servers. But, its doing its usual misbehaving. When setting up a new Outlook profile, the user enters their email address and password.  Autodiscover is successful in creating all
    the account settings, but at the end of the wizard a username and password window pops up with the users full email address incorrectly filled in as the username, which is why it didn't work.
    This has always been so annoying about SBS.  The user then has to be told to delete their email address in the username field, then fill in "domain\username" instead.  Only then is the authentication successful.
    I've read lots about people adding the external domain UPN Suffix to ADD&T, then manually changing ever users login to domain.com instead of domain.local.   Then you have to mess with the owa authentication settings in exchange to accept the
    UPN.   Its all too ridiculous.  There must be a simpler way.
    I have read about how you can control how the autodiscover.xml behaves, and there are examples of how to do it in this document:
    https://docs.google.com/viewer?a=v&q=cache:0jap1FNKgV0J:https://support.quest.com/Shared/Images/SOL51188_Outlook%2520Automatic%2520Account%2520Configuration.doc+&hl=pl&gl=pl&pid=bl&srcid=ADGEESjizUeFf-JYaM7ZdfIgUCKMMXtcCl0Y3pknFbuwd64GNHIEP1K8a_mpg2YIEisP6sz5DzbtVtdW4Pc42PE0Kjd6bz-3vXz0iaQm7FKi0AnwgvFG_41ZAkBLWynaJtf8s8xyi_d2&sig=AHIEtbSie1mEHTn8el4DPquNxrpovwknUQ
    The document above shows the settings we need to change.  It looks like we can add the local domain using DomainName into the autodiscover.xml and this will stop autodiscover reporting that the full email address is required.  So we
    should be able to get autodiscover to populate the username pop-up with with "domain\user" automatically. 
    OK, so my question is, how on earth do I edit these settings in SBS 2011?  I can't find any articles that talk about how to edit autodiscover. 
    If I could just edit this one setting (that Microsoft should have correctly configured in the first place) autodiscover will work perfectly for all existing users and all future users, without having to do anything.

    Just to straighten out a few things;
    1) This is NOT a bug, rather by design. Not every active directory has an exchange server in place, and MS is assuming you don't want to give your internal domain name out to people (which is why it doesn't default to domain\username)
    2) Going on what I said in 1), this is NOT SBS specific this is the same way with every Active Directory/Exchange install, keep in mind Microsoft did NOT specially design the software for SBS, they just bundled it into a supported configuration in a neat
    little package -since the Exchange server we run on SBS is the same Exchange server powering hundreds of hosted email providers -it makes sense why autodiscover doesn't provide the domain\username (imagine what a mess that would be!)
    3) I understand it's a little bit time consuming but it can actually be done for all users in a matter of seconds, select all users, right click and go to Properties, you can then choose the UPN Suffix for all users. When a new user gets created one of the
    settings in the wizard is the UPN suffix and is easily changeable as long as you notate for the person creating the user to do it. (The problem here is if you're using the SBS Console instead of AD to setup the User in which case that's just an oversight
    in design not a bug in the programming)
    4) You can most certainly have a powershell script that changes the UPN suffix from A to B, let me know if you're interested I'll dig one up for you. That can be run on a scheduled task and will solve the remaining issues you have :)
    I do see you mentioned it in number 3, I must have missed since I didn't re-read the OP before posting the article, however I just tested on several SBS 2011 machines and OWA authentication settings don't have to be changed at all, this worked immediately
    for Outlook Anywhere and Outlook Web Access in my lab and two different customer production systems.
    -GreenlightTech

  • Geotagging - how can I edit new places that I have previously created but with typos, errors etc?  How do I delete a place I have set up?

    Geotagging - how can I edit new places that I have previously created but with typos, errors etc?  How do I delete a place I have set up?  Then I could create a new, correct entry.  I'm using iPhoto '09.

    Is it OK to reply to my own question?? Thanks to the related posts that appeared AFTER I'd made the post above, I learnt about the 'Manage my places' item under the Windows menu. I felt a bit dumb not knowing this.
    BUT it doesn't completely resolve the issue.  The info shown in the EXIF (using opt-cmd-I) under Places has the place name I choose, but it is followed by a few other lines that are incorrect and do not seem to be anything to do with any data I can see under 'Manage my places'.
    Can anyone explain where these other entries might come from, and how to edit them?

  • How to Change the Spacing Between Bullets on a List

    I used to use Microsoft Expression and I could change the spacing between bullets on a list by formatting the paragraph and changing the spacing.  In Contribute I don't see how to do that.  I tried to Edit Roles under Administer Websites so it would be 2 lines after paragraph, but that doesn't help.  So if I want to increase the spacing between bullets on a list, how do I do that in Contribute?
    Steve

    Please log an Enhancement Request thrown, https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=9
    or make a suggestion for Contribute next.

  • How could I solve a recurrent sudden stopping of a Lenovo 3000 N100 laptop?

    Hi everybody,
    I have bought a new laptop Lenovo 300 N100 in November 2007.Since February 2009, it does not work correctly. The problem is the following:
      When I launch the laptop- it's XP which is installed on it- it works approximately between two abd three hours and suddenly stops.When I launch it again, it works approximately 20 minutes and suddenly stops.When I try to launch the laptop again, it  does not start ; but if I let it take 1 week of complete rest , then , when I launch it , it works approximately between two and three hours.
    Please, how could I solve yhis problem?
    Thanks you in advance for your answers.

    Hi Duck3,
    Excuse me to answer only now to your message; it's due to the fact that my Internet connection had problems.
    When I say :
    "but if I let it take 1 week of complete rest , then , when I launch it ,
    it works approximately between two and three hours." , it's when plugged in (my battery no more works since November 2008, the laptop can
    no more work only with battery), the laptop(when it works) indicates that the battery is "charged" at 0% and the problems I have described 
    in my post began in February 2009.
    I haven't done BIOS update since I bought this laptop.
                                                                                 Thanks.

  • HT1382 i got an iPad and all my app's, music,  and movies are on it, but when i try to download some apps to mi iPhone, they doesn't appear on the purchased tab, how could i move them back to itunes so i can access thru iCloud?

    i got an iPad and all my app's, music,  and movies are on it, but when i try to download some apps to mi iPhone, they doesn't appear on the purchased tab, how could i move them back to itunes so i can access thru iCloud? i have an 2nd generetion ipad and an iphone 5, thanks for you answers!

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • How do I edit text in a fill-in form?

    How do I edit text in a fill-in form?  I am using Adobe Acrobat Pro version 10.1.8 in Mac OSX.  The document was created in Word, saved as a pdf, opened in Acrobat, and form fields added.  Now I need to change some of the text on the original form (mostly just dates).  Ideally, I wish there were a way to edit the forms overall - add or delete lines, edit text, etc.  I've done this before, but I always seem to need to go back to Word, edit the original document, and then re-create the form fields... it takes me a huge amount of time, making sure each field is formatted correctly (font, size, wrapping, text resizing, etc) so it looks ok when the user enters their data and prints it.  Please, tell me there is a better way!
    If the solution is upgrading to a higher version of Acrobat, I'm listening... but ideally I can get this batch done in the software I have, then worry about learning the newest version.

    Fonts are Licensed asset's subject to single user use. They are not intended to be exchanged, redistributed, etc.
    As part of the PDF standard they included in a document so that the document can be viewed reliably without the font be installed on the viewing station.
    To edit you must have the font installed on your computer. The ability for second parties to use the font would violate font licenses.

Maybe you are looking for

  • Photoshop CS4 missing files after uninstall of CS3

    I upgraded the Adobe Creative Suite CS3.3 Design Premium today to CS4 on my MacPro. The upgrade went smoothly. After using the Adobe uninstaller for CS3 and starting Photoshop CS4, an error message appeared stating that required support files were mi

  • Adobe Acrobat and Reader 9.0

    How do I create a document in Acrobat that I can then sign in Reader?  Both versions are 9.0.  Thanks for the help!

  • Document Type restirction by company code

    Hi All We have a scenario where they are different companies with a group company and DMS is installed in all companies under single client While defining Document types, one group company should not be able to view the Document type of another.. We

  • MS ACCESS exception when updating memo field

    I use JDBC - stmt.setCharachterStream() to set large amount of characters to the db. I get a MS Access "Function sewuence error" when updating a large amount of data (for smaller amounts there is no problem). Any Ideas ? note: I was using stmt.setAsc

  • Attachments in iPad email

    How do I add an attachment to my email in iPad?