Last active
August 29, 2015 14:17
-
-
Save GoZOo/898140a64454e6e33091 to your computer and use it in GitHub Desktop.
Drupal - Configure wysiwyg_filter module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTML elements attributes | |
@[class|style|title|id], | |
a[href|target<_blank|title], | |
em/i, strong/b, strike, sub, sup, u, s, | |
img[width|height|alt|title|src], | |
p[align<center?justify?left?right], | |
div[align<center?justify?left?right], | |
br,address, blockquote, pre, cite, code, | |
h1,h2,h3,h4,h5,h6, | |
ul,ol,li,dl,dt,dd, | |
table[width|cellpadding|cellspacing|border], | |
tr[align|valign|rowspan], | |
td[align|valign|width|colspan], | |
th[align|valign|width],tbody,thead,tfoot | |
# Activate common styles to allowed. Copy/paste un browser console : /!\ Doesn't work with Overlay module ! : | |
jQuery('#edit-filters-wysiwyg-settings-style-color-color').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-color-background').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-font-font').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-font-font-family').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-font-font-size').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-font-font-style').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-font-font-weight').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-text-text-align').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-text-text-decoration').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-text-text-transform').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-text-letter-spacing').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-text-word-spacing').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-margin').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-margin-top').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-margin-right').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-margin-bottom').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-margin-left').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-padding').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-padding-top').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-padding-right').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-padding-bottom').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-box-padding-left').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-top').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-right').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-bottom').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-left').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-top-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-right-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-bottom-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-border-1-border-left-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-height').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-line-height').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-max-height').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-max-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-min-height').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-min-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-dimension-width').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-bottom').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-left').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-overflow').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-right').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-top').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-vertical-align').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-positioning-z-index').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-layout-float').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-list-list-style').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-list-list-style-image').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-list-list-style-position').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-list-list-style-type').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-table-border-collapse').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-table-border-spacing').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-table-caption-side').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-table-empty-cells').attr('checked','checked'); | |
jQuery('#edit-filters-wysiwyg-settings-style-table-table-layout').attr('checked','checked'); | |
# Rules for Class Names and Rules for Element IDs, to allow everything : | |
a*, | |
b*, | |
c*, | |
d*, | |
e*, | |
f*, | |
g*, | |
h*, | |
i*, | |
j*, | |
k*, | |
l*, | |
m*, | |
n*, | |
o*, | |
p*, | |
q*, | |
r*, | |
s*, | |
t*, | |
u*, | |
v*, | |
w*, | |
x*, | |
y*, | |
z* | |
# In Rules for URLs used within inline styles | |
/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment