|
|
| שורה 121: |
שורה 121: |
| peri: "טקסט מחוק", | | peri: "טקסט מחוק", |
| post: '}'+'}' | | post: '}'+'}' |
| }
| |
| }
| |
| }
| |
| }
| |
| } );
| |
|
| |
| // נוסחאות מתמטיות
| |
| // נוסחאות כימיות
| |
| // הערה מוסתרת
| |
| // טקסט ממורכז
| |
| // טקסט מיושר לשמאל
| |
| // תגי syntaxhighlight
| |
| // תו כיווניות
| |
| $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
| |
| 'section': 'advanced',
| |
| 'group': 'more',
| |
| 'tools': {
| |
| 'formula': {
| |
| label: 'נוסחה מתמטית (LaTeX)',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Nuvola_apps_edu_mathematics_blue-p.svg/22px-Nuvola_apps_edu_mathematics_blue-p.svg.png',
| |
| action: {type: 'callback', execute: (function () {return mathDialog('math', 'הוספת משוואה', 'עזרה:נוסחאות'); }) }
| |
| },
| |
| 'chem-formula': {
| |
| label: 'נוסחה כימית (LaTeX)',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/99/Ben_test_tube.svg/22px-Ben_test_tube.svg.png',
| |
| action: {type: 'callback', execute: (function () {return mathDialog('chem', 'הוספת נוסחה', 'עזרה:נוסחאות כימיות'); }) }
| |
| },
| |
| 'hiddennote': {
| |
| label: 'הערה מוסתרת',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/b5/Gnome-document-new.svg/22px-Gnome-document-new.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: '<!-- ',
| |
| peri: "הערה מוסתרת",
| |
| post: " -->"
| |
| }
| |
| }
| |
| },
| |
| 'leftalign': {
| |
| label: 'טקסט מיושר לשמאל',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Gnome-format-justify-left.svg/22px-Gnome-format-justify-left.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: '<div class="mw-content-ltr">',
| |
| peri: "טקסט מיושר לשמאל",
| |
| post: "</div>"
| |
| }
| |
| }
| |
| },
| |
| 'sourcetags': {
| |
| label: 'עיצוב קוד מקור',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/66/Utilities-terminal.svg/22px-Utilities-terminal.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: '<syntaxhighlight lang="text">\n',
| |
| peri: "טקסט",
| |
| post: "\n</syntaxhighlight>\n"
| |
| }
| |
| }
| |
| },
| |
| 'rlm': {
| |
| label: 'תו כיווניות',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Gnome-format-text-direction-rtl.svg/22px-Gnome-format-text-direction-rtl.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: '{'+'{כ}'+'}'
| |
| } | | } |
| } | | } |