OpenCart removes line breaks from description - opencart

I have a Opencart site that has free and paid code packages. I have been trying to find where in the code it is removing my line breaks. If you enter code into the text editor it saves the line breaks into the database.
When you go to edit the product it has removed all the line breaks when the page loads. Does anyone know where this can be fixed. My first thought is the WYSIWYG editor but I am lost on how to prevent this from happening.
Anyone know what file is causing this glitch.
Edit: If we cant fix the editor does anyone know what file contains the form for adding/editing a product so i can remove the id and just use the textarea

I have heard of this problem before... it is caused by ckeditor... you can remove ckeditor and paste raw html into the text area if you like... alternatively you could use a separate WYSIWYG editor such as tinymce or similar... look here for a few options http://www.1stwebdesigner.com/design/10-best-wysiwyg-text-and-html-editors-for-your-next-project/ or here Alternatives to CKEditor for WSYIWYG text area editor
Contact me if you need help installing any of them

Related

Displaying Text on HTML

I made a website on Big Cartel and I need to add some text under the slideshow I am using on my homepage.
From what I gather the only way for me to do this is via code on HTML. I know nothing about coding so I was trying to look up tutorials on how to add text, but I could never get the text to display on the page.
How can I go about adding the text?
I tried using code I found online, just as an example so I can see how it's displayed. I couldn't get any text to display anywhere on the page.

How to change OpenCart2 breadcrumbs home text?

I'm struggling with this problem for a few months now and I can't figure out where to change this.
Note that the website I'm working on is coded by someone else, I can't find the part where the fontawesome icon is added to the home text in the breadcrumbs.
Look at the breadcrumbs
As you can see there's an icon added, but I want to add a space between home and the icon, I just can't figure out which file to edit.
If you need any more info, let me know.
Search for $_['text_home'] in catalog/language/english/default.php and add a space in it.

Track down where content comes from

Being new to Joomla I do not know all the tricks for troubleshooting etc. Currently I have a page that has a section of content on it. The content is created by DT Register but I've been through the CP several times and cannot find the section?
I hope someone is up and can share with me how to track down where pieces of content come from so I can find where this is being generated and change as needed.
The page in question is a DT Register form. I can locate and modify every section of the page EXCEPT one.
The section is titled USER INFORMATION and captures userid & password to create an account. Looking at the element in developer tools it would appear it is part of the dt register generated code but as I mentioned I can't find it.
The sandbox I am playing in is here: http://take7.lamplighterguild.com/index.php/register?eventId=15&controller=event&task=individualRegister
The section is towards the top and is hard to read on the page...which is why I want to find it.
Thank you for any help or direction.
So unfortunately my question was poorly worded. I have no trouble at all getting the css changed. It is the origin of the content that I am really trying to track down. Where does it come from etc. Is there a way to detect if it came from an article, or a component, etc. I thought there might be clues as how to figure that out.
For troubleshooting issues like this, tools like Firebug or Web Inspector for Chrome and Safari are your go to tools. If you aren't already familiar with them you'll find lots of help online.
There is default body text styling of colour #D9A362 getting into your page from one of the stylesheets. I can't find the source quickly myself, though it's easy enough to write an override.
One place you could do this is open http://take7.lamplighterguild.com/templates/theme1001/css/template.css with a text editor. Below the existing body rule # line 7, add something like
body.cssstyle-style1{
color:black;
}
This will fix the H2 text at the top of the page which you mention, plus the 'user information' line immeadiately above the form.
Hope this helps!
EDIT
You have something which is writing the following style to your page head and this is the culprit:
body {font-family:Arial, Helvetica, sans-serif; font-size:13px; line-height:21px; color:#D9A362; }
It's even on your home page so it's not necesaarily related to DT Register. To me it looks like it's coming from your menu extension.

sitecore - dot in rich text editor

I'm finding that some strange things are happening with my rich text editor in Sitecore 6.6. Some users have been entering content that is breaking items. Looking at the text it seems fine but when I copy the text into notepad I can see this dot character "ยท"
Any time this is in the text editor clicking Show Editor does nothing and I can't view raw values either. When I click Edit Html the edit box comes up but my changes will never save, the only way I can seem to fix these pages is if I update the content straight into the database.
Is there a way I can:
Prevent these characters from getting into the database,
Update the content without having to run update statements on the database?
Thanks in advance.

Django text file upload and security when using 'mark_safe'

I'm working on a Django app where the user uploads a space/tab/comma delimited text file. I display the text in a browser and the user can then interactively parse columns of delimited values which get highlighted with css as they change the settings. (Only a sample is displayed not the whole file!)
To highlight the selections I insert html/css code in and around the text but have to 'mark_safe' the text to get the html/css to render. I assume this opens security issues as even I, a complete noob could insert html in my input file and get it to render.
My Question:
Is there something I can use to strip html out of the text file immediately after I've uploaded it and before I render it in the browser? Would stripping '<' and '>' out be enough? What about something to disable .js if required?
I understand there are other well documented security measures I can take regarding file uploads. However I'm after a solution to my specific issue relating to me 'marking_safe' the input text I then render to the browser.
Django already has Automatic HTML escaping for this. Take a look at the link I posted in the docs. Hope this helps.