What you see is not always what you get
Wim Mostrey (via DrupalFire)
As I've mentioned before setting up a Wysiwyg in Drupal has become a straightforward job. A popular method is using the Wysiwyg module in combination with CKEditor. Enable the module, install the editor library and make sure to allow the <img> tag in your input format and you're good to go, right? Sadly, this is not always the case. It's important to note that as a security measure all input formats except the 'Full HTML' format remove all attributes from an html tag. This means that even though the image option in your favorite Wysiwyg editor allows you to align an image to the right and setting a margin, your input format will remove these attributes. Here's a clean example of CKEditor using the standard align and margin functionality:

Using the default 'Filtered HTML' input format and allow the img tag, this renders the following output:

What we saw in the Wysiwyg is definitely not what we see in the actual output because the input format removed the attributes that we set to style and position the images.
So how can we fix this? In Drupal core, we can not: the only option you have is to enable the 'Full HTML' filter, which is not advisable. Your best option is to install the Wysiwyg Filter module which enables a whole range of extra settings for input formats, allowing you to select which attributes, classes and properties should be allowed for which html tags. Such as the 'align' attribute and 'margin' property for images.
Read more: What you see is not always what you get
0 Comments
Building a Business with Drupal
John Forsythe (via DrupalFire)
Last week, I launched my latest Drupal-powered startup, a niche e-commerce site selling Photoshop Layer Styles.
Today, I published a full case study over on Drupal.org. The study includes my thoughts on using Zen vs building from scratch, how I set up the multi-column content layout, and some tips on tweaking your server for maximum performance.
So, if you're interested in learning a bit about how I build sites, be sure to check it out, and leave a comment if you have any questions.
Read more: Building a Business with Drupal
0 Comments
More Articles...
- DrupalCon Copenhagen: The program and pre- and post-conference activities
- Update on DrupalCon Copenhagen Core developer summit
- Details about the new Drupal 6 release process
- Drupal 6.18, 6.19 and 5.23 released
- Redesign update: Sprint 1
- Serving static content from a different domain in Drupal 7
- Yahoo! Style Guide using Drupal
- Improving the performance of Drupal's cron by using the Elysia cron module
- Drupal 7 Docs need your help!
- Washington, DC Drupal Meetup is Tonight
Page 1 of 33
New Joomla Templates
Social ConnectedName: Social ConnectedDescription: Social Connected is a new professional, easy to use Joomla template released by the Joomladesigns team which includes custom CSS style layouts for the Jomsocial and K2 Extensions. The Social Connected template includes the following features Three Jooml ...Owner: JoomlaDesignsTags: Computers, Communications, Business, Architecture
ExtendName: ExtendDescription: Extend is a professional easy to use Joomla template released by the Joomladesigns Team. The new Extend template supports the following features Includes Four different Joomla Templates Built-in colour picker to customize the template colour scheme Bui ...Owner: JoomlaDesignsTags: Business, Beauty, Architecture
NgineName: NgineDescription: Ngine is a new professional Joomla template from Joomladesigns.co.uk which supports a wide range of features including Five built-in Joomla templates Slide show Slide pop up boxes K2 CSS styles RTL support Six built in font styles Lots of module posi ...Owner: JoomlaDesignsTags: Software, Portal, News, Games
Simply City 2Name: Simply City 2Description: Simply City is a professional, fast loading Joomla template which is easy to use and includes a wide range of features. The web design also supports CSS styles for the popular K2 extension. The Joomla template includes the following features 3 multi col ...Owner: JoomlaDesignsTags: Computers, Communications, Business
Simply CityName: Simply CityDescription: Simply City is a professional, fast loading Joomla template which is easy to use and includes a wide range of features. The web design also supports CSS styles for the popular K2 extension. The Joomla template includes the following features 3 different ...Owner: JoomlaDesignsTags: Electronics, Computers, Communications, Business- Show more...









