Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better HTML tags for images
#1
Lightbulb 
Currently when an image is inserted to the page, GetSimple uses an image tag something like this:

Code:
<img alt="Image's alt text." src="http://www.path.to/image.jpg" style="width: 200px; height: 150px; float: right;" />

I suggest that the inline CSS be removed and something like this used instead:

Code:
<img alt="Image's alt text." src="http://www.path.to/image.jpg" width="200" height="150" class="floatright" />

The CSS class for float: right; is shown as class="floatright". If image would be floated to left, the class could be class="floatleft".
Reply
#2
This is part of CKEditor, it can be customized by user according to ckeditors configuration.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
how to change this, see here in the WIKI: http://get-simple.info/wiki/how_to:wysiwyg_editor

or in the german website: http://www.get-simple.de/editor/

Cheers. Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
I don't think there is any need to configure and customise CKEditor here. If you don't set the image properties in the CKEditor then there won't be any inline style declarations and you can just use css in the normal way
Reply
#5
also i do not think your supposed to use width and height attributes anymore. That is why it uses inline styles.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 2 Guest(s)