Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Inline Style ?? #534

Open
luis888 opened this issue Mar 30, 2015 · 1 comment
Open

Inline Style ?? #534

luis888 opened this issue Mar 30, 2015 · 1 comment

Comments

@luis888
Copy link

luis888 commented Mar 30, 2015

Hi,
Fine job thank's, I need that users writing are readable by other programs that i cannot change, is there a way to get all styles inline without a need for CSS.
best regards
Luis

@damien-biasotto
Copy link

Better late than never :

This module is deprecated, obsolete and you better find an alternative but if you have no choice you can read below :

Unfortunately there are no proper way to this without editing core files …
You need to had a new entry in attributeCheckMethods object :
source: jaybee@9027cc0

style: (function() {
      var REG_EXP = /[^a-z0-9_\-]\:[^a-z0-9_\-];/gi;
      return function (attributeValue) {
        return attributeValue;
      };
    })()

And then you have to add the rule for tags needing inline style :

check_attributes: {
     "style": "style"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants