Diferencia entre revisiones de «Usuario:King of Herdaz/common.js»

m
sin resumen de edición
m (fixing reference error)
m
/* Your code goes here */
 
// New 'toolbar' section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'type': 'toolbar', // Can also be 'booklet'
'label': 'Emoticons'
// or 'labelMsg': 'section-emoticons-label' for a localized label
}
}
} );
 
// New group example
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'groups': {
'faces': {
'label': 'Faces' // or use labelMsg for a localized label, see above
}
}
} );
 
// Button example
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
} );
 
// New 'booklet' section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
} );
 
// Add booklet page of text to existing section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'info',
'label': 'Colors',
'headings': [
{ text: 'Name' }, // or use textMsg for localization, see also above
{ text: 'Temperature' },
{ text: 'Swatch' }
} );
 
// Add booklet page of buttons to existing section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'info',
} );
 
// Add new booklet section with pages of encapsulating buttons
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
8718

ediciones