How to remove OOB RTE styles?

I have created a custom masterpage (CustomV4.Master).I have a requirement to add custom RTE styles and remove the OOB RTE styles.I have created custom RTE styles and these are working fine.But i have to hide OOB RTE styles.For that i referenced my custom
css in the master page
<SharePoint:CssRegistration
name="<%
$SPUrl:~sitecollection/_layouts/AirbusWiki/AirbusWikiRTE.css %>"
runat="server"/>
This is refering to custom css which contains Custom RTE.But the OOB RTE are still showing up.I tried to remove CoreV4.css and tried adding custom css.But it's not working.Can anbody help me? I just need to hide the OOB RTE Markup styles.
Nehal Bhandari, Engineer development Sopra group India

Finally did with CSS Approach.Here is the code.Add this in CSS File and refer it in your master page.
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Heading
1"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Heading
2"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Heading
3"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Heading
4"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Colored
Heading 1"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Colored
Heading 2"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Colored
Heading 3"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Colored
Heading 4"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Horizontal
Rule"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Paragraph"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Callout
1"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Callout
2"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Callout
3"]
display:none;
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.ElementWithStyle\.Menu\.Styles
a[title="Callout
4"]
display:none;
}    It woks fine and is really easy to do!!!
Nehal Bhandari, Engineer development Sopra group India

Similar Messages

  • How to remove a paragraph style?

    How do you remove a paragraph style from a paragraph and make that paragraph not have any style assigned to it? Without deleting the actual style.
    Thanks.

    Select "Break link to style" in the paragraph panel flyout menu.

  • How to remove named font style but keep paragraph style

    I receive documents in which some paragraphs begin with words that have named font styles applied, such as "Emphasis (Important)". This prevents my code from reading the paragraph style. When I use the "Clear Formatting" function (Home>Font>icon
    that shows Aa and an eraser), it removes the font style and the paragraph style. Is there a way to remove only the font style, or a way to read the paragraph style while ignoring the font style?

    Do you mean fixed-width? If so try
    final Font mYFont = new Font("Monospaced", Font.BOLD, 7);

  • How to remove folder and leaf icons from a tree

    Hi,
    I know how to remove when we have a mx component i.e.,
    <mx:Tree folderOpenIcon={null} ...../> similarly for
    closed and default leaf icon.
    But how do i achieve this from an action script like say i
    have,
    var tree:Tree = new Tree();
    tree.setFolderOpenIcon(null); ///is there something like this
    or any other alternative.
    Please advice.
    Thanks,
    Lucky

    the folderOpenIcon is a style so you have to set it with the
    setStyle method
    try:
    tree.setStyle("folderOpenIcon",null);

  • How to remove a java script pop up

    Hi,
    I imported a robohelp document from another company and i am
    catering it to my company's needs. The problem is they have popups
    which refer to .bmp and it is in java script. If i highlight the
    word which has the pop up and remove the popup and then highlight
    the normal word again and refer it to my topic in the project
    manger; it still refers to their image and not mine. It is strange
    but true. I don't know how to remove the java script cos each time
    i hover over the highlighted text there are 2 red squares on the
    left and right hand side of the word highlighted which i want to
    change from their image to mine.
    Any help would be much appreciated .
    Thanks,
    Ramya

    please take a look at this
    //--></script></robohelp>
    on the <b style="font-weight: normal;">Environmental
    Consequence</b> window
    captures and displays information that you reported to a
    governmental
    agency, police, rescue center, or internal company sources.
    </p>
    <div class=droptext id=POPUP286607275 x-ss-type=dropdown
    style="display: none;">
    <p class=Graphic style="margin-left: 0in;"><img
    src="agency_notification_tab.bmp"
    x-maintain-ratio=TRUE class=img_whs2 style="width: 1108px;
    height: 120px; border-style: none; border-style: none;"
    width=1108 height=120 border=0></p>
    </div>
    <p class=Body>The following is a description of some of
    the fields that
    display on the <b style="font-weight:
    normal;">Agency Notification</b> tab:</p>
    <ul class=whs3 style="list-style: disc;" type=disc>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Reported
    By</b> - Person who reported the incident to an agency
    or organization.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Agencies
    Notified</b> - Agencies or organizations notified
    about the incident.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight:
    bold;">Contact</b>
    - Contact person at the notified agency or
    organization.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Notify
    Date</b> - Date the agency was
    notified.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><span style="font-weight:
    bold;">Comment/Report
    Number</span> - This field can be used to record any
    comments, notes,
    agency report/case numbers associated with the agency
    notification. </p></li>
    </ul>
    <p class=TableText><a href="javascript:void(0);"
    onClick="var e; if (parseInt(navigator.appVersion)>=4){e=event;}
    if (parseInt(navigator.appVersion) >=2 &amp;&amp;
    typeof(PopupMenu_Invoke) == 'function')
    PopupMenu_Invoke(e,'','Action
    Buttons','../../03_Getting_Started_files/Action_Buttons.htm','Adding
    a Row','../../03_Getting_Started_files/Adding_Row.htm','Adding Text
    Entries','../../03_Getting_Started_files/Adding_Text_Entries.htm','Deleting
    a
    Row','../../03_Getting_Started_files/Deleting_Rows.htm','Environmental
    Consequence
    Record','EC_Environmental_Consequence_Record.htm','Searching by
    Personnel
    ID','../../03_Getting_Started_files/Searching_by_Personnel_ID.htm','Selecting
    the
    Time','../../03_Getting_Started_files/Selecting_Time.htm');return
    false"
    title="Related Topics" id=a2 style="position:
    relative;"><img src="../../ss_btn_related_topics1.gif"
    alt="Related Topics" style="width: 81px; height: 17px;
    border-style: none; border-style: none;"
    width=81 height=17
    border=0></a><robohelp><script
    type="text/javascript"
    language=JavaScript1.2><!--
    InitEffects('a2');
    //--></script></robohelp>
    </p>
    <script language=javascript1.2
    type="text/javascript"><!--
    kadovTextPopupInit('a1','POPUP286607275');
    //--></script>
    if you could paste this code on your word doc and try to
    search for .bmp it exactly shows where it is used i tried removing
    that line but it acted strange as even when i added a pop up to a
    word it does not show anything in the view mode.

  • How do I apply a style to the rich text editor in 10.1.2

    I am trying to add text items to a portlet. How do I maintain the style for item text?

    that implies to constrain the styles in the RTE (instead proposing too much choices : font, size etc..)
    A method:
    customize the RTE by reducing the styles to a choice between standard HTML styles (header 1, header 2, body text, paragraph,..).
    Then map these styles to the css styles propsed by Portal.
    As a sample, get all the css from your portal by typing:
    http://<you.machine>/pls/portal/PORTAL.wwv_setting.render_css?p_lang_type=NOBIDI&p_subscriberid=1&p_styleid=12&p_siteid=0&p_rctx=P
    for RTE customizing: http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_10gr2_features.pdf
    Patrick.

  • How to remove white line that appears on background of flash file when viewing in powerpoint?

    When importing a swf file into powerpoint with a background colour a thin white line appears on the top of the flash movie when played in powerpoint. The white line disappears when you click onto another slide and back again, but always appears when initially playing the slide. Anyone have any ideas why this is and how to remove it?
    Any help is appreciated.
    Dom

    Doesn't the Location Bar (URL's) also disappear in the Add-ons Tab? <br />
    Separator or border used to delineate the User Interface (Toolbars) from the content area.
    Contact the developer of Tree Style Tabs. If that white line doesn't appear until you click on a Tab, I would call it a Bug or glitch in that extension.

  • How to remove the rule or class function in CS5

    i need to know how to remove the rule or class function in CS5  at the bottom of the screen there are two options for formating HTML and Css when i click the HTML it only allows me to change the bold or italics or link something but when i click CSS it allows me to format how i want the paragraph aligned and the text size and font when i click on lets say changing the font size a box comes up asking me to name a rule so it applies it to everything else i type i want to know how to stop tht like edit everything on my own and if i use CS5 here will it be compatible with CS4 or CS3 at my skool plzz help ive been frustrated with this

    If I use CS5 here will it be compatible with CS4 or CS3 at my skool plzz help ive been frustrated with this
    Code is code.   It doesn't matter which product you use.
    i need to know how to remove the rule or class function in CS5
    You can't.  DW encourages you to use good coding methods, which means using CSS classes and to keep content (HTML) separate from styles (CSS).  For example, if you change font-size on p tags like so:
         p {font-size: 38px}
    Every paragraph will have 38px sized text.
    If you want to apply a special style to just a portion of your text, you must define a CSS class name like so:
    .foo {
    font-size: 38px;
    color: red;
    HTML:
    <p>This is normal paragraph text <span class="foo"> And this is very big and red.</span></p>
    This is normal paragraph text And this is very big and red. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Message was edited by: Nancy O.  -- unfortunately, this forum doesn't support Raw HTML with inline styles. You'll need to paste my code examples into your DW page to see the effect.

  • How to remove/ignore the element using SAXParser

    hello all,
    I want to parse the text content in string from the existed xml file. but had problem with the parser. Does anyone have good idea, how to remove or ignore the <link> tag in tag <text>?
    IS: the output is only the rest of part text behind <link style="blue" src="www.test.com" />.
    Wanted: the whole text in <text> tags. like "Reach more customers by creating targeted micro-sites using test's multi-store retailing functionality."
    Given below is my code :
    <?xml version="1.0"?>
    <test xmlns="http://www.test.com/test">
    <title>test title</title>
    <text>Reach more customers by creating targeted micro-sites using test's<link style="blue" src="www.test.com" /> multi-store retailing functionality.</text>
    </test>java code using SAXParser
      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
      public void endElement(String uri, String localName, String qName) throws SAXException {
        if (qName.equals("text")) {
          System.out.println("content: " + text);
      public void characters(char[] ch, int start, int length) throws SAXException {
        String str = new String(ch, start, length);
        if (str.length() > 0)
          text = text == null ? str : text + str;
    ...Edited by: lauehuang on Sep 9, 2008 4:37 AM

    i think u can't modify the xml file using SAX
    SAX is only for reading XML
    for any modifications in xml file u have to use DOM parser....
    correct me if i m wrong....
    Thanks & Regs
    Ravi

  • How to change header font style in Spark DataGrid?

    I'm looking since last week for a way how to change the font style of the header in a Spark DataGrid. It drive me nuts that I can't find a way to do this. Have anyone one an idea how to achieve it? Any help is appreciated.
    Thanks,
    - Artur

    Hi,
    Some styles won't work because some text styles got hardcoded into the DefaultGridHeaderRenderer's Label. You'll run into this issue not just with the DataGrid headers but also things like the Panel's title and other places where we have text. One way to get around this issue is to create your own custom headerRenderer based on the default one and then redefine the headerRenderer skin part in the skin.
    First, create a subclass of the DefaultGridHeaderRenderer and tweak the "labelDisplay" to your liking (or even just take out all the styles and style it on your own as you had earlier using your custom header renderer's name). Example below (I named it "CustomHeaderRenderer"):
    <?xml version="1.0" encoding="utf-8"?>
    <skins:DefaultGridHeaderRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     xmlns:skins="spark.skins.spark.*"
                                     xmlns:comps="comps.*">
        <fx:Declarations>
            <!-- Remove fontweight="bold" and other styles as you wish
                 Must be a component and not a factory. -->
            <s:Label id="labelDisplay"
                     verticalCenter="1" left="0" right="0" top="0" bottom="0"
                     textAlign="start"
                     verticalAlign="middle"
                     maxDisplayedLines="1"
                     showTruncationTip="true" />
        </fx:Declarations>
    </skins:DefaultGridHeaderRenderer>
    Next, create a simple DataGrid skin by creating a subclass of the  spark.skins.spark.DataGridSkin in MXML and defining a new headerRenderer  component in the fx:Declarations section. Example below (I named it "CustomDataGridSkin"):
    <?xml version="1.0" encoding="utf-8"?>
    <skins:DataGridSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    xmlns:skins="spark.skins.spark.*"
                    xmlns:comps="comps.*">
        <fx:Declarations>
            <!-- Must be a factory with the right id for the skin part -->
            <fx:Component id="headerRenderer">
                <comps:CustomHeaderRenderer />
            </fx:Component>
        </fx:Declarations>
    </skins:DataGridSkin>
    Last, assign your new skin as the skinClass of your DataGrid (either in MXML or as a style):
    <s:DataGrid skinClass="comps.CustomDataGridSkin">
    I know it's not pretty, but it's the result of trading off between having completely custom skinning vs. having knobs to tweak every style. Hope this helps.
    -Kevin

  • How to remove the Blue Fuzzy Line in Spry Collapsible Panels

    Do anyone know exactly how to remove the blue fuzzy line that appears when a tab is focussed on in the Collapsible Panels feature?
    I heard there was some code that could be implemented into one of the style sheets which could solve this but I am yet to find a solution
    Thanks

    .CollapsiblePanelTab { outline:none; }
    Try that.

  • How to remove underlining on text links in Muse...

    Hi,
    Anyone know how to remove the annoying underlining of text links in Muse. I have of course, styled my link to have no underline - which in Muse works, but doesn't once online.
    Even better - does anyone know how to create a hover style via Muse? I used to do it via Dreamweaver no problem - but haven't had any luck with Muse so far.
    And is it possible to style 2 text links within a sentence? It only seems to be able to style the whole sentence rather than the just the links
    If anyone out there can help?
    Laura

    Not to worry - worked it out!
    For anyone who doesn't know, go to File/Site Properties and click on the Text tab. Its all there!

  • [Question] How to remove baby blue text chat bubbl...

    My Skype for Windows (windows 7), just updated to the latest version 6.22.0.107. With this update Skype has completely changed the look and feel of the entire interface giving it a light blue overlay on everything.
    I was wondering if there is any way to remove the light blue chat bubbles that now show up surrounding all text messages sent or received?
    I would prefer the old simple black and white standard text message layout of the previous version of skype. I find that the light blue bothers my vision and makes it more difficult for me to read my messages and follow the conversation.
    Thanks for any help with this issue.

    How to remove them:
    http://download.skype.com/msi/SkypeSetup_6.21.0.104.msi
    The Skype design will as all other designs evolve. Look at for instance MS office, the 2003 version looks nothing like the 2007 one and beyond. Reasons for this; ribbons made people more productive (according to designers).
    The design quirk now, is devices, all for now 3 of them phones, pads, and Computers. Crossplattform design is not an easy task, and will offcourse cause design changes.
    That said, chat bubbles and the like are a new Skype thing, is it good, we don't know yet. When I had my old Nokia phone, I laughted off the iBubbles, now I'm om Android, and used to them.
    Would I prefer the old msg style? Yes, most likely, but I do manage to have fun in the new one (phone).

  • How to Remove Edit permissions to a group/user when an list item is approved.

    Hi,
    We have a requirement of removing the edit permissions on custom list item when a item is approved, this I have to implement using OOB feature or customization and designer, but no code should be involved.
    Can anyone please suggest me to implement this.
    Thanks, Swaroop Vuppala

    Check this below
    You need to use item level permissions.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9e3a624e-77d3-432f-9a2b-3f25b925423a/how-to-remove-edit-and-delete-option-for-a-list-item-when-approval-workflow-is-complete-and?forum=sharepointgeneralprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to remove all hyperlinks at once?

    Hi guys,
    I want to know how to remove all hyperlinks in a text at once. I know how to remove one link at a time. But it's time consuming if you paste a text with a lot of hyperlinks.
    Thanks,
    Adriano.

    Duplicate your document for safe then drag and drop the icon of the copy of the icon of this script saved as an application.
    --[SCRIPT remove links]{code}
    Enregistrer le script en tant qu'Application ou Progiciel : remove links.app
    Déposez le sur le bureau par exemple.
    Glisser-déposer l'icône d'un document Pages sur celle du script
    va éliminer tous les Hyperliens et signets prédsents dans le document.
    On peut également qlisser déposer un fichier index.xml.
    +++++++
    Save the script as an Application or an Application Bundle: remove links.app
    Store it on the desktop for instance.
    Drag and drop the icon of a Pages document on the script's icon
    to remove the Hyperlinks and Bookmarks embedded in the document.
    We may also drag & drop an index.xml file.
    Yvan KOENIG (Vallauris, FRANCE)
    16 février 2009
    enhanced 17 février 2009
    --=====
    property removeBookmarks : true
    true = remove the bookmarks
    false = don't remove the bookmarks *)
    property removeLinks : true
    true = remove the Links
    false = don't remove the Links *)
    property liste : {}
    --=====
    on open (sel)
    set theDoc to (item 1 of sel) as text
    tell application "System Events" to tell disk item theDoc
    set nn to name
    set uti to type identifier
    set isPackage to package folder
    end tell
    if nn is "index.xml" then
    my traiteIndex(theDoc)
    else if uti is not in {"com.apple.iwork.Pages.Pages", "com.apple.iwork.pages.sffpages"} then
    error "Not a Pages document !"
    else if isPackage then
    -- here the document is a package
    if theDoc ends with ":" then set theDoc to text 1 thru -2 of theDoc
    tell application "Finder"
    set the_index to (theDoc & ":index.xml")
    set indexGzAvailable to exists file (the_index & ".gz")
    set indexAvailable to exists file the_index
    end tell -- Finder
    if indexGzAvailable then
    if indexAvailable then tell application "Finder" to delete file the_index
    my expandIndex(the_index & ".gz")
    my traiteIndex(the_index)
    else
    if indexAvailable then
    my traiteIndex(the_index)
    else
    error "No Index available !"
    end if
    end if -- indexGzAvailable
    else
    -- here the document is a flat one
    tell application "Finder"
    set cont to (container of file theDoc) as text
    set name of file theDoc to (nn & ".zip")
    end tell -- Finder
    set theDocZ to cont & nn & ".zip"
    my expandDoc(theDocZ, theDoc)
    tell application "Finder"
    set name of file theDoc to (nn & "yk")
    set theDocF to cont & nn & "yk"
    set the_index to (theDocF & ":index.xml")
    set indexAvailable to exists file the_index
    end tell -- Finder
    if indexAvailable then my traiteIndex(the_index)
    end if -- nn …
    end open
    --=====
    on traiteIndex(theIndex)
    local theKey1, theKey2, theKey3, theKey4, theKey5, itm, itm1, itm2, itm2
    my nettoie()
    (* Lis le contenu du fichier Index.xml *)
    set texte to read file theIndex from 1
    if removeBookmarks then
    (* supprime les descripteurs de signets *)
    set theKey1 to "<sf:bookmark sf:name"
    set theKey2 to "</sf:bookmark>"
    if texte contains theKey1 then
    set my liste to my decoupe(texte, theKey1)
    repeat with i from 2 to count of my liste
    set itm to my decoupe(item i of my liste, theKey2)
    set itm1 to item 1 of itm
    set itm1 to text (1 + (offset of ">" in itm1)) thru -1 of itm1
    set itm2 to my recolle(items 2 thru -1 of itm, theKey2)
    set item i of my liste to (itm1 & itm2)
    end repeat -- i
    set texte to my recolle(my liste, "")
    end if
    end if -- removeBookmarks
    Here are samples of Hyperlinks in the index.xml file
    --link to bookmark
    <sf:p sf:style="paragraph-style-32">
    <sf:bookmark sf:name="page 3" sf:ranged="true" sf:page="3">
    page 3
    </sf:bookmark>
    <sf:br/>
    --link to URL
    <sf:p sf:style="paragraph-style-32">
    <sf:link href="http://discussions.apple.com/thread.jspa?threadID=1905618&amp;tstart=0" sf:style="SFWPCharacterStyle-7">
    <sf:span sf:style="SFWPCharacterStyle-7">
    Change cell color if number is different from previous cell
    </sf:span>
    </sf:link>
    <sf:br/>
    --link to an other Pages document
    <sf:p sf:style="paragraph-style-32">
    <sf:link href="pages:///Users/yvan_koenig/Documents/Sans%20titre%20-%20copie.pages#un%20 signet%20externe">
    <sf:file-alias sf:file-alias="0000000001ae000200010c4d6163696e746f7368204844000000000000000000 000000000000c45c8cef482b00000008a77c1853616e73207469747265202d20636f7069652e7061 67657300000000000000000000000000000000000000000000000000000000000000000000000000 000000360f06c5c03419000000000000000000010002000009200000000000000000000000000000 0009446f63756d656e747300001000080000c45c70cf0000001100080000c5c0260900000001000c 0008a77c0008a76f00006bdf000200414d6163696e746f73682048443a55736572733a7976616e5f 6b6f656e69673a446f63756d656e74733a53616e73207469747265202d20636f7069652e70616765 7300000e0032001800530061006e00730020007400690074007200650020002d00200063006f0070 00690065002e00700061006700650073000f001a000c004d006100630069006e0074006f00730068 0020004800440012003455736572732f7976616e5f6b6f656e69672f446f63756d656e74732f5361 6e73207469747265202d20636f7069652e7061676573001300012f00001500020012ffff0000"/>
    <sf:span sf:style="SFWPCharacterStyle-7">
    vers autre document
    </sf:span>
    </sf:link>
    <sf:br/>
    if removeLinks then
    (* supprime les descripteurs de liens *)
    set theKey1 to "<sf:link href="
    set theKey3 to "<sf:span sf:style="
    set theKey4 to "</sf:link>"
    set theKey5 to "</sf:span>"
    if texte contains theKey1 then
    set my liste to my decoupe(texte, theKey1)
    repeat with i from 2 to count of my liste
    set itm to my decoupe(item i of my liste, theKey4)
    set itm1 to item 2 of my decoupe(item 1 of itm, theKey3)
    set itm1 to text (1 + (offset of ">" in itm1)) thru -1 of itm1
    set itm1 to item 1 of my decoupe(itm1, theKey5)
    set itm2 to my recolle(items 2 thru -1 of itm, theKey4)
    set item i of my liste to (itm1 & itm2)
    end repeat -- i
    set texte to my recolle(my liste, "")
    end if -- texte contains
    This piece of code takes care of a bug in the save as Pages '08 process.
    A link to an other document is not completely disabled so the 'disabled' link remains blue.
    The link is stored this way:
    <sf:p sf:style="paragraph-style-32">
    <sf:span sf:style="SFWPCharacterStyle-7">vers autre document</sf:span>
    <sf:br/>
    when it would be:
    <sf:p sf:style="paragraph-style-32">
    vers autre document
    <sf:br/>
    if texte contains theKey3 then
    set my liste to my decoupe(texte, theKey3)
    repeat with i from 2 to count of my liste
    set itm to my decoupe(item i of my liste, theKey5)
    set itm1 to item 1 of itm
    set itm1 to text (1 + (offset of ">" in itm1)) thru -1 of itm1
    set itm2 to my recolle(items 2 thru -1 of itm, theKey5)
    set item i of my liste to (itm1 & itm2)
    end repeat -- i
    set texte to my recolle(my liste, "")
    end if -- texte contains
    end if -- removeLinks
    set lineFeed to ASCII character 10
    if texte contains (lineFeed & lineFeed) then set texte to my recolle(my decoupe(texte, lineFeed & lineFeed), lineFeed)
    if texte contains (return & return) then set texte to my recolle(my decoupe(texte, return & return), return)
    set eof of file theIndex to 0
    write texte to file theIndex
    my nettoie()
    end traiteIndex
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    on nettoie()
    set liste to {}
    end nettoie
    --=====
    (* Expands the zip file z in the container d, z and d are pathnames as strings *)
    on expandDoc(z, d)
    do shell script "unzip " & quoted form of (POSIX path of (z)) & " -d " & quoted form of (POSIX path of (d))
    end expandDoc
    --=====
    on expandIndex(f)
    do shell script "gunzip " & quoted form of (POSIX path of (f))
    end expandIndex
    --=====
    on lisIndex_xml(f)
    local t
    try
    set t to ""
    set t to (read file f)
    end try
    return t
    end lisIndex_xml
    --=====
    on compactIndex(nDoc)
    local aliasNDoc
    set aliasNDoc to nDoc as alias
    write leTexte to aliasNDoc starting at 0
    do shell script "gzip " & quoted form of POSIX path of aliasNDoc
    end compactIndex
    --=====
    --[/SCRIPT](code}
    Yvan KOENIG (from FRANCE samedi 14 mars 2009 20:55:42)

Maybe you are looking for

  • How to install Premiere Pro CS6 via Creative Cloud Desktop (32-bit-system)

    Hello community, I have used Premiere Pro CS6 as a Creative Cloud Version on my PC with windows xp. After upgrading to Windows 7 Premiere Pro is not longer available in Creative Cloud Desktop App because it is an older PC with 32bit-system. I have re

  • Cannot install itunes AND Apple Mobile Device (BIG PROBLEM)

    Ok so there is a BIG problem, 3 weeks ago, itunes was working perfectly, and then i got a problem and i had to delete itunes and i also deleted Apple Mobile Device and bonjour and quicktime, but when i try to reinstall itunes, i can't, it just skips

  • Mail Crashes on viewing HTML email

    Hi, I've been having trouble with Mail crashing when I click on an email that is formated as HTML or RTF. Not all of them will crash Mail just certain emails. I have notices that emails that come Microsoft Outlook on windows tend to crash Mail readil

  • Field type not showing correctly

    Hi everyone, I am using a spreadsheet to report on but for some reason the columns are showing in CR as String(255) instead of Number.  I have double checked the spreadsheet format and they seem to be in the number format.  Any ideas what's happening

  • Conventional "sharpen after resizing" workflow?

    Conventional PS wisdom has been to resize your image to the desired output size and then sharpen (optimizing for the new size) as the last step. When I saw that explicitly doing that workflow was impossible in Aperture (which mandates doing all your