0
Welcome Guest! Login
0 items Join Now

Insert raw html

  • Insert raw html

    Posted 16 years 7 months ago
    • Real newb here, I am trying to insert raw html into a module. I am trying to replicate the demo content in the metamorph template, though this isn't a template specific question.

      I edit the module(mod_custom) click the html button so i am not editing in the WYSIWYG editor. Insert the raw html and click update html. Most of the html tags get eaten, and i don't know why.

      my system info
      HP Built on: Linux 2.6.21.7-3.fc8xen #1 SMP Thu Mar 20 14:58:12 EDT 2008 x86_64
      Database Version: 5.0.45
      Database Collation: utf8_general_ci
      PHP Version: 5.2.6
      Web Server: Apache/2.2.9 (Fedora)
      Web Server to PHP interface: apache2handler
      Joomla! Version: Joomla! 1.5.2 Production/Stable [ Woi ] 22-March-2008 22:00 GMT
      User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20071126 Fedora/1.5.0.12-7.fc6 Firefox/1.5.0.12

      The only editor is the default one TinyMCE 2.0

      I insert the following code by hitting the html button, pasting it in the pop up window and then hitting update html.
      <img src="images/stories/demo/thumb1.jpg" alt="What we do" style="float: left; margin-right: 10px; margin-top: -2px;">
       
      <span class="highlight-bold">Production</span>
      <br>
      Top quality manufacturing equipment to produce <a href="#">More...</a>
       
      <div style="border-bottom: 1px solid rgb(204, 204, 204); clear: both; padding-top: 10px; margin-bottom: 10px;"></div>
       
      <img src="images/stories/demo/thumb2.jpg" alt="What we do" style="float: left; margin-right: 10px; margin-top: -2px;">
       
      <span class="highlight-bold">Marketing</span>
      <br>
      A team of marketing specialists to drive your <a href="#">More...</a>
       
      <div style="border-bottom: 1px solid rgb(204, 204, 204); clear: both; padding-top: 10px; margin-bottom: 10px;"></div>
       
      <img src="images/stories/demo/thumb3.jpg" alt="What we do" style="float: left; margin-right: 10px; margin-top: -2px;">
       
      <span class="highlight-bold">Branding</span>
      <br>
      World class designers who will create outstanding <a href="#">More...</a>
       
      <div style="border-bottom: 1px solid rgb(204, 204, 204); clear: both; padding-top: 10px; margin-bottom: 10px;"></div>
       
      <img src="images/stories/demo/thumb4.jpg" alt="What we do" style="float: left; margin-right: 10px; margin-top: -2px;">
       
      <span class="highlight-bold">Consultation</span>
      <br>
      Professional, experience consultants to aid you <a href="#">More...</a>
       
      <div style="border-bottom: 1px solid rgb(204, 204, 204); clear: both; padding-top: 10px; margin-bottom: 10px;"></div>

      If i immediatly hit the html button again, this is what i get for raw html back
      <img src="images/stories/demo/thumb1.jpg" border="0" alt="What we do" /> 
      <span class="highlight-bold">Production</span>
      <br />
      Top quality manufacturing equipment to produce <a href="#">More...</a>
      <img src="images/stories/demo/thumb2.jpg" border="0" alt="What we do" />
      <span class="highlight-bold">Marketing</span>
      <br />
      A team of marketing specialists to drive your <a href="#">More...</a>
      <img src="images/stories/demo/thumb3.jpg" border="0" alt="What we do" />
      <span class="highlight-bold">Branding</span>
      <br />
      World class designers who will create outstanding <a href="#">More...</a>
      <img src="images/stories/demo/thumb4.jpg" border="0" alt="What we do" />
      <span class="highlight-bold">Consultation</span>
      <br />
      Professional, experience consultants to aid you <a href="#">More...</a>

      All the
      <div style="border-bottom: 1px solid rgb(204, 204, 204); clear: both; padding-top: 10px; margin-bottom: 10px;"></div>
      lines have been eaten.

      How can I insert this? Do i have to install another editor?

      -Max
    • Last Edit: 16 years 7 months ago by Max J. Spaulding.
  • Re: Insert raw html

    Posted 16 years 7 months ago
    • OK, i really don't understand whats going on.

      I thought I was using TinyMCE 2.0 for editing the modules but thats not whats being used.

      I went to manage plugins and changed the settings for TinyMCE to not clean html code, and it made no difference.

      So, then I enabled the XStandardLite 2.0 Editor and set it to Source Code mode, and set the default editor to XStandardLite.

      When I edit a module or Article now that I changed the default editor from TinyMCE to XStandardLite I get the same editor as before!

      I don't get what is going on, any suggestions?

      -Max
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: Insert raw html

    Posted 16 years 7 months ago
    • Turn off your editiors completely or try using JCE (Joomla Content Editor)
    • Thanks,
      jim

Time to create page: 0.068 seconds