Inserting HTML tag for character style

I want to be able to use the <DEL> HTML tag around some text:
<p>Regular Price <del>$395</del>  Today $95</p>
So, it should look like this:
Regular Price $395 Today $95
This works reliably in Dreamweaver (both preview and in various browsers). It also works on this forum page! But I can't get it to work in Muse.
Here is my test site:
http://musetest-dec152012.businesscatalyst.com/index.html
I followed the instructions here:
http://forums.adobe.com/message/4819276#4819276
This shows how to add a scroll box using HTML. That works on the test site. I then modified the contents to add <DEL> to the second word and it isn't shown. [I also added <STRONG> to the sixth word and it doesn't show either.]
I followed the instructions here:
http://forums.adobe.com/message/4399108#4399108
This shows how to use a character style. The <MARK> style seems to work, but the <STRONG> style doesn't show up in the browser. Any rate, there is no way I can find to add my own tag and the <DEL> tag is not one of those in the pull down list.

Iain --
Muse overrides the default styling for the 'del' and 'ins' tags. If you want to use these tags in custom HTML, and have styling applied to them, you'll have to specify the styling you want with inline CSS, like so:
<p>Regular Price <del style="text-decoration: line-through">$395</del>  Today $95</p>

Similar Messages

  • Tagging for Character Style

    Hi All,
    Need to insert tagging (character style name) surrounding the text which has character styles applied in InDesign document.
    Example: This is <italic>an</italic> example of <bold>character style</bold> tagging text.
    Please provide JS code for this.
    Thanks in advance,
    Mon

    Hi,
        Try this. I'm also fresher...
    First u have to create tags manually with names b, bi,i, sc (bold,bolditalic,italic, small caps)...
    then execute this js...
    docObj=app.activeDocument;
    xmlObj = docObj.xmlTags;
    pageObj=docObj.pages.item(0);
    myTextFrame=pageObj.textFrames.item(0);
    myText=myTextFrame.parentStory.paragraphs.item(0);
    app.findTextPreferences = app.changeTextPreferences =  NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold";
    app.changeTextPreferences.markupTag=xmlObj[0].name;
    alert(app.changeTextPreferences.markupTag);
    app.activeDocument.changeText();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold Italic";
    app.changeTextPreferences.markupTag=xmlObj[1].name;
    alert(app.changeTextPreferences.markupTag);
    app.activeDocument.changeText();
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Italic";
    app.changeTextPreferences.markupTag=xmlObj[2].name;
    alert(app.changeTextPreferences.markupTag);
    app.activeDocument.changeText();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.capitalization = Capitalization.SMALL_CAPS;
    app.changeGrepPreferences.markupTag=xmlObj[4].name;
    alert(app.changeGrepPreferences.markupTag);
    app.activeDocument.changeGrep();

  • Export Tags for Paragraph styles in Indesign CC without classes

    With CS6, when you set export tags for para styles, you could export them to epub without classes, for example body text as p, headings as h1 or h2 etc - without need for classes. This made very simple code. With Indesign CC, it seems that classes always get added no matter what. So all your body text is tagged with p with a class of normal or something. Is there a way to go back to setting export tags as straight p of h1, h2 tags??

    Nope. It was an intentional change on our part for CC.
    I do understand there are a number of folks who would like the option to do this on a per Style basis and I'm very actively considering it for a future CC update.
    Douglas Waterfall
    Architect, InDesign Engineering

  • Inserting html snippets for paypal buttons into templates

    I can insert html snippets(for pay pal buttons) into an iweb page that I've created but if I go to the slide shows and try to add a button to those it puts the buttons on ALL the slides. Any remedy as I'd like to use the photo templates AND pay pal buttons.

    Welcome to the Apple Discussions. Cyclosaurus posts some code to add items to the gallery page of a slideshow. I believe the post in in this thread: http://discussions.apple.com/thread.jspa?messageID=8426989#8426989
    Here are some of his other posts about album pages that might be of some help:
    http://discussions.apple.com/thread.jspa?messageID=8851990#8851990
    http://discussions.apple.com/thread.jspa?messageID=7511242&#7511242
    He's the resident expert on Javascript here and can do just about anything with it.
    OT

  • Parsing XML with html tags for style

    I'm using flash to pull in XML data, but I want to use html
    tags to be able to style the text. When I add any html, it treats
    it as a sub-node and ignores the data. Also, line breaks in the xml
    are being converted to double spaced paragraphs? The relevant code
    is basically this:
    if (element.nodeName.toUpperCase() == "TEXT")
    {//add text to text array
    ar_text[s]=element.firstChild.nodeValue;
    textbox1.text = ar_text[0];

    try to use htmlText instead text... like this:
    textbox1.htmlText = ar_text[0]
    adam

  • Conditional build tags with character styles and ignored text

    RoboHelp HTML v8.0.2.208
    Windows XP Professional Version 2002 Service Pack 3 with 2 GB of RAM
    Output: WebHelp and HTML Help
    I have recently moved my projects from RH HTML X5 to RH HTML 8 and this is when the following problem appeared. I use lots of conditional build tags within the help projects. Some of these tags are for my own use for reference and I combine these with character styles containing a coloured background (highlight) so that they show up in the WebHelp or HTML Help output (e.g. text to identify the software version that the field/feature/text was added, reminders to check details, insertion of bug ID numbers, design document names, etc.). These areas of text are stripped out of the final build for customers by using a conditional build expression.
    What I have noticed is that if a paragraph contains text with a conditional build tag applied AND that tagged text has a character style applied AND an unknown word within the conditional build tag is ignored (with the HTML tag <?rh-ignored text="word_to_be_ignored" ?>), saving the topic, closing it, then re-opening it shows that the conditional build text has stretched to the next conditional build tag, or to the end of the topic if there aren’t any other conditional build tags. This also happens by switching from Design View to HTML View. Note that this doesn’t happen if Ignore All is applied to the unknown word.
    This doesn’t just apply to projects converted from RH X5. I created a new test project in RH8 and the same behaviour was observed. Similar behaviour occurred very occasionally in RH X5 but that seemed to be down to HTML tags being nested incorrectly.
    The largest project contains around 1200 topics and with many hundreds of conditional build text areas this now causes a problem. I’ll probably have to locate every ignored word in an area of conditional text within each project, set it to Ignore All and then manually remove and re-apply the conditional build tags, unless someone can come up with something clever. Can anyone else replicate this and should it be logged as a bug?

    Hi Daggins,
    Thanks - that is good info to have. But as we all agree, that does take away from the point of single-sourcing.
    You aren't misunderstsanding exactly... I am doing all my conditional tagging in FM and it works like a charm in terms of the PDFs that I generate from FM, and even the conditionally tagged text in RH shows/hides correctly. The issue is I am also importing my index and TOC from FM... and even if I have an entire file in FM tagged as conditional (all the text is tagged as conditional, I don't know if you can tag a file as conditional), the file name as a heading it still appears in the RH TOC. There is no text... but in my view it shouldn't appear in the TOC either (it looks like just a broken link when I generate my online help) - this is not ideal.

  • Insert HTML.Tag attributes?

    Hey,
    How would I insert html attributes? I am making a HTML Editor.
    The following are some valid java html attributes. How would I insert it properly?
    HTML.Tag.P, HTML.Tag.BLOCKQUOTE, HTML.Tag.CENTER,
    HTML.Tag.CITE, HTML.Tag.CODE, HTML.Tag.H1, HTML.Tag.H2,
    HTML.Tag.H3, HTML.Tag.H4, HTML.Tag.H5, HTML.Tag.H6,
    HTML.Tag.PRE
    Like for example, to make text bold, you would do
    MutableAttributeSet attr = new SimpleAttributeSet();
    StyleConstants.setBold(attr, true);
    textpane.setCharacterAttributes(attr,false);
    Is there similar code like the one above to add HTML.Tags like the ones I listed above in my post?
    Thanks in advance

    Hi,
    sorry about the delay, couldn't find this thread last night.
    Useful docs:
    http://java.sun.com/products/jfc/tsc/articles/text/element_interface/index.html
    and
    http://java.sun.com/products/jfc/tsc/articles/text/attributes/
    Those methods are in javax.swing.text.html.HTMLDocument and take the form insertBeforeStart(Element, String). As I said yesterday, as soon as you have text then the caret is in a character Element and a Paragraph element. So for e.g. if you're in a P element and you want to create an H1 element, how do you do it? If the user clicks your H1 button then you create an empty heading, easy enough. But if they have some text selected then you have a choice. You could just create an empty H1 or you could assume that they have typed the H1 content and have highlighted it so that it becomes an H1. You then have to change the existing element so that is no longer has the (now H1) text in it.
    That's where the other two methods (setInnerHTML and setOuterHTML) come into play.
    The other problemette that I'm working on is reseting text back to normal after it has been formatted.
    Suppose you have a P paragraph. The user highlights a single word, clicks Bold. That's easy. Then they decide that they don't want it bold, so they click the Normal button. Taking bold off is easy, but should you. What if the paragraph element was actually an H1 element. If you turn bold off now then that word no longer matches the H1 style.
    You could check at the caret position just before the start of the element that the user has selected and see what the style is there. BUt then waht if the user has the word before perhaps underlined. Again it's unreliable.
    Also I'm finding then when I remove the bold formatting that the element isn't being reabsorbed into it's parent. In a paragraph if I go through and make each word formatted (B, i, u) and then switch the formatting off word at a time I end up with each word as an element.
    Still working on these, so I'll post a solution when I have one.
    regards
    sjl

  • Arabic characters appear as empty squares when using certain HTML tags or font styles

    Only when HW acceleration is on. Arabic characters appear as empty squares when using "italic" or "oblique" font styles or when using &lt;i&gt; or &lt;em&gt; html tags.
    Try this code to replicate the problem
    <pre>
    &lt;p&gt;مشكلة ظهور المربعات الخالية بدل الحروف&lt;/p&gt;
    &lt;p style="font-style: italic;">Italic مشكلة ظهور المربعات الخالية بدل الحروف&lt;/p&gt;
    &lt;p style="font-style: oblique;">Oblique مشكلة ظهور المربعات الخالية بدل الحروف&lt;/p&gt;
    &lt;i&gt;i tag مشكلة ظهور المربعات الخالية بدل الحروف</i> &lt;br&gt; &lt;br&gt;
    &lt;em&gt;em tag مشكلة ظهور المربعات الخالية بدل الحروف &lt;/em&gt;
    </pre>

    After lots of research, I found the problem. The boxes (squares) show up whenever there is a font in the webpage that does not have Arabic within its Unicode range such as Times New Roman Italic or Oblique. Normally, Firefox will pick another font to display the characters but now, a newly introduced feature is interfering.
    To fix the problem without turning off hardware acceleration.
    Go to about:config
    locate: gfx.font_rendering.directwrite.use_gdi_table_loading
    which is True by default in FF4.0 Beta 10, and change it to False.
    This is a bug that has to be fixed.

  • Define HTML Tag for Parser - Help?

    Hi all,
    I'm trying to write a program which downloads a HTML script, parses it, extracts the links and checks to see which of these links are broken. While the parser is picking up tags that are well-formed, such as:
    Mark Humphrys -
    Research -
    The HTML script has a few malformed HTML tags such as the following:
    <li><b> References </b>
    <li><b> References </b>
    The snippet of code I'm using to try and get these malformed tags is as follows:
         ParserCallback parserCallback = new ParserCallback()
         public void handleText(final char[] data, final int pos) { }
              Tag a = HTML.Tag("a");
              public void handleStartTag(Tag tag, MutableAttributeSet attribute, int pos)
                   if (tag == a)
                   String address = (String) attribute.getAttribute("href");
                        list.add(address);
                   System.out.println(address);
         public void handleEndTag(Tag t, final int pos) {  }
         public void handleSimpleTag(Tag t, MutableAttributeSet a, final int pos) { }
         public void handleComment(final char[] data, final int pos) { }
         public void handleError(final java.lang.String errMsg, final int pos) { }
         };but I keep getting the error that they can't find the Tag() method. At the start of my code I have:
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTML.Tag;so I don't understand why the compiler can't find the method. Is there something wrong with the way I'm using it?
    I have very little experience with this area so any help or pointers would be great!

    Sorry, the exact error message is:
    cannot find symbol,
    symbol: constructor Tag(java.lang.String)
    location: class javax.swing.text.html.HTML.Tag
    HTML.Tag a = new HTML.Tag("a");
    ^
    it should of course be a constructor not a method but the compiler still can't seem to find it. The proper code (in as much as I can tell although it still isn't working)
         ParserCallback parserCallback = new ParserCallback()
         public void handleText(final char[] data, final int pos) { }
              HTML.Tag a = new HTML.Tag("a");
              public void handleStartTag(Tag tag, MutableAttributeSet attribute, int pos)
                   if (tag == a)
                   String address = (String) attribute.getAttribute("href");
                        list.add(address);
                   System.out.println(address);
         public void handleEndTag(Tag t, final int pos) {  }
         public void handleSimpleTag(Tag t, MutableAttributeSet a, final int pos) { }
         public void handleComment(final char[] data, final int pos) { }
         public void handleError(final java.lang.String errMsg, final int pos) { }
         };

  • Issue for email notification if insert html tag in question name

    I created discussion with name "Search highlight box issue in <textarea>" and receive the following email notice:
    You may need to add shielding tags in the title of the topic?

    In your XSL. I didn't find any Xpath expression to print values for these columns in table
    Transaction ID
    Transaction Type
    DateTime
    Status
    Code
    Message
    thanks,
    Satish
    http://soadiscovery.blogspot.com

  • HTML tags for certain values in a report

    Hi, I have built a report with a list of patient visit to a doctor. This is roughly a custom calendar with the names of the patients at different predefined hours.
    I am now trying to display a canceled visit by adding a strike through line for the patient in question.
    The overall look will be list with patient's names and some of them will be strike through-ed if they canceled it.
    So I changed my select for the report to look like this:
    select '<del>' || patient || '</del>' where canceled = 1 ...
    But the report still looks the same - no lines through the names.
    I also tried with bold tag but it seems that the tags are just dropped off somewhere in the process of rendering.
    Could anyone help?

    For using tags in the calendar see this link:
    http://apex.oracle.com/pls/otn/f?p=31517:116
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Insert HTML tag, embedded code from YOUTUBE video place into my movie pg

    Okay, so I need to do 2 things actually, one is be able to copy and past the embedded code from a youtube video then place it into my movie page on my site... I was able to copy and paste the embedded code, drag n drop the HTML icon from iWEB onto the movie pg then paste in the embedded code
    the video shows up after adjusting the size appropriately but when I press the play button nothing happens?
    Also need to take the video from youtube and adjust it by changing a few things... how do I drag it into my imovie ?? or how do I go about editing the video?
    any help is much appreciated
    S

    The video will not play in iWeb itself - you need to publish it first because you have the code the and snippet within iWeb. If you want to check that it works, just publish to a local folder from iWeb to test it.
    You need to alter the code directly, so simply click on the html snippet and alter the code that you entered.

  • How to insert Html tag

    I want to send pics but via HTML through Photobucket. I have the code, drop it in the email but no picture? Any help is appreciated. thanks

    Best to just send the URL of the Photobucket page. If you want the image inlaid in your message, that usually only works if you put it in as an attachment, and the recipient has a mail client that supports Mail's attachment formatting.

  • Create XML Element Tag BasedOn Found Character Style

    Hi,
    Good Day!
    Basically I want to search only for character styles that contains "ntb-", that is why it is hard coded in my searchString variable.
    Although I was able to create XML tag based on selected character style, but it will always add/insert at the end of the parent XML element.
    Can anyone could help me how insert/add that element at the insertion point where the text is found?
    Thanks,
    --elmer
    var myDoc = app.documents[0];
    myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.POINTS;
    myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
    var charStyles = myDoc.allCharacterStyles;
    var foundStyles = Array();
    var searchString = String();
        searchString = 'ntb-';
    var tempName = String();
    var tempName1 = String();
    for(var i = 1; charStyles.length > i; i++){
       tempName = charStyles[i].name;
       tempName1 = tempName.toLowerCase();
       if(tempName1.indexOf (searchString.toLowerCase()) != -1){
           foundStyles.push (tempName);
    var myDialog = app.dialogs.add({name: "Convert Footnote Character Styles to XML Tags",canCancel:true});
    with (myDialog) {
        with (dialogColumns.add().borderPanels.add()) {
            with (dialogColumns.add()) {
                staticTexts.add({staticLabel: "Character style to search : "});        }
            with (dialogColumns.add()) {
                selCharStyle = dropdowns.add({stringList: foundStyles, selectedIndex: 0, minWidth: 175});
    var dialogShown = myDialog.show();
    while (dialogShown) {
        if (selCharStyle.selectedIndex == 0) {
            alert("Must have at least a character style to search!");
            dialogShown = myDialog.show();
            continue;
        } else {
            insertXMLTags(selCharStyle.stringList[selCharStyle.selectedIndex], selCharStyle.selectedIndex, "0");
            break;
    myDialog.destroy();
    alert("Finished!");
    exit();
    function insertXMLTags(cStyle, cStyleIndex, ip) {
        var myFinds = searchStyle(cStyle, cStyleIndex);
        for (i=myFinds.length - 1; i>=0; i--) {
            var myIP = myFinds[i].texts.item(0).insertionPoints.item(0);
            var myParentXML = myIP.associatedXMLElements[0];
            var myChiidXML = myParentXML.xmlElements.add ( cStyle );
            myChiidXML.contents =  myFinds[i].contents;
            //set the selection
            app.selection = myFinds[i].texts.item(0);
            //remove the selected text
            myFinds[i].texts.item(0).remove();
            Utility Functions         
    function searchStyle(cStyle, cStyleIndex){
        var myFinds;
        // if script version is for Indesign CS2
        if (app.scriptPreferences.version < 5){                                 
            app.findPreferences = NothingEnum.nothing;
            app.changePreferences = NothingEnum.nothing;
            myFinds = myDoc.search(undefined, undefined, undefined, undefined,
            {appliedParagraphStyle: pStyle, appliedCharacterStyle: cStyle});
        // else, for CS3 and CS4
        }else{                                 
            //Clear any existing find/change settings
            app.findTextPreferences = NothingEnum.nothing;
            app.changeTextPreferences = NothingEnum.nothing;
            // set character or paragraph style to search
            if (cStyleIndex != 0){ 
                app.findTextPreferences.appliedCharacterStyle = cStyle;
            //Set the find options.
            app.findChangeTextOptions.caseSensitive = false;
            app.findChangeTextOptions.includeFootnotes = true;
            app.findChangeTextOptions.includeHiddenLayers = false;
            app.findChangeTextOptions.includeLockedLayersForFind = false;
            app.findChangeTextOptions.includeLockedStoriesForFind = false;
            app.findChangeTextOptions.includeMasterPages = false;
            app.findChangeTextOptions.wholeWord = false;                             
            myFinds = myDoc.findText();
        return myFinds;

    Here is a way you can find any field.
    Download the current template.
    Open it in word and go to the line that you are interested in.
    The blanket PO# will be a field. Right click on it and go to properties. You will see the xml element there.
    Hope this answers your question,
    Sandeep Gandhi

  • Adobe Muse - Character Style Options

    I have noticed new options for character styles is there any information availbable on using these new options as the H1 / H2 tags etc are no longer available

    Hi
    You can refer to these documents :
    http://www.adobepress.com/articles/article.asp?p=1925239&seqNum=3
    http://www.lynda.com/Muse-tutorials/Creating-character-styles/89048/104757-4.html
    Thanks,
    Sanjit

Maybe you are looking for

  • Which is the maximum allowable size of a BSO cube?

    Hi Experts! Can anyone tell me if it is possible to have a BSO cube of between 1 and 4 Terabytes_ and if it can be tuned for acceptable performance with about 100 concurrent users? Sorry if I look stupid with this question but this is my real importa

  • SAP Netweaver XI      VS      SAP ABAP       VS       SAP BW

    Hi Guys, I'm an SAP BASIS administrator. But I am thinking of a career change in my company and if I will be given a chance, I am choosing between the three below. SAP Netweaver XI SAP BW SAP ABAP I am confuse on which of these three is the best one.

  • Having problems since latest 10.5.7 update: com.apple.doc "Bus error"

    Hello, Since this morning, after installing the latest Mac OS updates, my Mac has been really slow, and the dock never appears. My console messages keep printing the following message: com.apple.launchd[83] ([0x0-0x18a18a].com.apple.dock[929]) Exited

  • Mac Pro 5,1 Start up disk preference   Internal bootable backup

    Hi, I have a Mac Pro 5,1 running yosemite. My OS is installed on a PCIe SSD and I am trying to make a bootable backup of the OS to an internal HDD in one of the standard HD bays. No matter how I make the backup (time machine or chrono sync), once a b

  • Screen lease manufacture error

    so i got iPhone 6 as a gift, but there is a manufacture error which is screen lease, and i have no papers or documintation from where it was bought, i just have the box, will i get any help in the apple service provider !? will i get any replacement