Dotclear


Ignore:
Timestamp:
11/26/16 10:40:17 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

No more <![CDATA[ … ]]> but in rss2.xsl (only useful for XML document, as XHTML)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php

    r3361 r3421  
    3030               dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/_post_editor.js')). 
    3131               '<script type="text/javascript">'."\n". 
    32                "//<![CDATA[\n". 
    3332               dcPage::jsVar('dotclear.legacy_editor_context', $context). 
    3433               dcPage::jsVar('dotclear.legacy_editor_syntax', $syntax). 
    35                'dotclear.legacy_editor_tags_context = '.sprintf('{%s:["%s"]};'."\n", $context, implode('","', $tags)). 
    36                "\n//]]>\n". 
     34               'dotclear.legacy_editor_tags_context = '.sprintf('{%s:["%s"]};'."\n", $context, implode('","', $tags))."\n". 
    3735               "</script>\n"; 
    3836     } 
     
    6866          dcPage::jsLoad(dcPage::getPF('dcLegacyEditor/js/jsToolBar/jsToolBar.dotclear.js')). 
    6967          '<script type="text/javascript">'."\n". 
    70           "//<![CDATA[\n". 
    71           "jsToolBar.prototype.dialog_url = 'popup.php'; ". 
     68          "jsToolBar.prototype.dialog_url = 'popup.php'; "."\n". 
    7269          "jsToolBar.prototype.iframe_css = '". 
    73           'body{'. 
    74           'font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'. 
    75           'color : #000;'. 
    76           'background: #f9f9f9;'. 
    77           'margin: 0;'. 
    78           'padding : 2px;'. 
    79           'border: none;'. 
    80           (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl' ? 'direction:rtl;' : ''). 
     70          'body {'. 
     71          '    font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'. 
     72          '    color: #000;'. 
     73          '    background: #f9f9f9;'. 
     74          '    margin: 0;'. 
     75          '    padding: 2px;'. 
     76          '    border: none;'. 
     77          (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl' ? '     direction: rtl;' : ''). 
    8178          '}'. 
    8279          'pre, code, kbd, samp {'. 
    83           'font-family:"Courier New",Courier,monospace;'. 
    84           'font-size : 1.1em;'. 
     80          '    font-family: "Courier New",Courier,monospace;'. 
     81          '    font-size: 1.1em;'. 
    8582          '}'. 
    8683          'code {'. 
    87           'color : #666;'. 
    88           'font-weight : bold;'. 
     84          '    color: #666;'. 
     85          '    font-weight: bold;'. 
    8986          '}'. 
    9087          'body > p:first-child {'. 
    91           'margin-top: 0;'. 
     88          '    margin-top: 0;'. 
    9289          '}'. 
    93           "'; ". 
    94           "jsToolBar.prototype.base_url = '".html::escapeJS($GLOBALS['core']->blog->host)."'; ". 
    95           "jsToolBar.prototype.switcher_visual_title = '".html::escapeJS(__('visual'))."'; ". 
    96           "jsToolBar.prototype.switcher_source_title = '".html::escapeJS(__('source'))."'; ". 
     90          "'; "."\n". 
     91          "jsToolBar.prototype.base_url = '".html::escapeJS($GLOBALS['core']->blog->host)."'; "."\n". 
     92          "jsToolBar.prototype.switcher_visual_title = '".html::escapeJS(__('visual'))."'; "."\n". 
     93          "jsToolBar.prototype.switcher_source_title = '".html::escapeJS(__('source'))."'; "."\n". 
    9794          "jsToolBar.prototype.legend_msg = '". 
    98           html::escapeJS(__('You can use the following shortcuts to format your text.'))."'; ". 
    99           "jsToolBar.prototype.elements.blocks.options.none = '".html::escapeJS(__('-- none --'))."'; ". 
    100           "jsToolBar.prototype.elements.blocks.options.nonebis = '".html::escapeJS(__('-- block format --'))."'; ". 
    101           "jsToolBar.prototype.elements.blocks.options.p = '".html::escapeJS(__('Paragraph'))."'; ". 
    102           "jsToolBar.prototype.elements.blocks.options.h1 = '".html::escapeJS(__('Level 1 header'))."'; ". 
    103           "jsToolBar.prototype.elements.blocks.options.h2 = '".html::escapeJS(__('Level 2 header'))."'; ". 
    104           "jsToolBar.prototype.elements.blocks.options.h3 = '".html::escapeJS(__('Level 3 header'))."'; ". 
    105           "jsToolBar.prototype.elements.blocks.options.h4 = '".html::escapeJS(__('Level 4 header'))."'; ". 
    106           "jsToolBar.prototype.elements.blocks.options.h5 = '".html::escapeJS(__('Level 5 header'))."'; ". 
    107           "jsToolBar.prototype.elements.blocks.options.h6 = '".html::escapeJS(__('Level 6 header'))."'; ". 
    108           "jsToolBar.prototype.elements.strong.title = '".html::escapeJS(__('Strong emphasis'))."'; ". 
    109           "jsToolBar.prototype.elements.em.title = '".html::escapeJS(__('Emphasis'))."'; ". 
    110           "jsToolBar.prototype.elements.ins.title = '".html::escapeJS(__('Inserted'))."'; ". 
    111           "jsToolBar.prototype.elements.del.title = '".html::escapeJS(__('Deleted'))."'; ". 
    112           "jsToolBar.prototype.elements.quote.title = '".html::escapeJS(__('Inline quote'))."'; ". 
    113           "jsToolBar.prototype.elements.code.title = '".html::escapeJS(__('Code'))."'; ". 
    114           "jsToolBar.prototype.elements.mark.title = '".html::escapeJS(__('Mark'))."'; ". 
    115           "jsToolBar.prototype.elements.br.title = '".html::escapeJS(__('Line break'))."'; ". 
    116           "jsToolBar.prototype.elements.blockquote.title = '".html::escapeJS(__('Blockquote'))."'; ". 
    117           "jsToolBar.prototype.elements.pre.title = '".html::escapeJS(__('Preformated text'))."'; ". 
    118           "jsToolBar.prototype.elements.ul.title = '".html::escapeJS(__('Unordered list'))."'; ". 
    119           "jsToolBar.prototype.elements.ol.title = '".html::escapeJS(__('Ordered list'))."'; ". 
     95          html::escapeJS(__('You can use the following shortcuts to format your text.'))."'; "."\n". 
     96          "jsToolBar.prototype.elements.blocks.options.none = '".html::escapeJS(__('-- none --'))."'; "."\n". 
     97          "jsToolBar.prototype.elements.blocks.options.nonebis = '".html::escapeJS(__('-- block format --'))."'; "."\n". 
     98          "jsToolBar.prototype.elements.blocks.options.p = '".html::escapeJS(__('Paragraph'))."'; "."\n". 
     99          "jsToolBar.prototype.elements.blocks.options.h1 = '".html::escapeJS(__('Level 1 header'))."'; "."\n". 
     100          "jsToolBar.prototype.elements.blocks.options.h2 = '".html::escapeJS(__('Level 2 header'))."'; "."\n". 
     101          "jsToolBar.prototype.elements.blocks.options.h3 = '".html::escapeJS(__('Level 3 header'))."'; "."\n". 
     102          "jsToolBar.prototype.elements.blocks.options.h4 = '".html::escapeJS(__('Level 4 header'))."'; "."\n". 
     103          "jsToolBar.prototype.elements.blocks.options.h5 = '".html::escapeJS(__('Level 5 header'))."'; "."\n". 
     104          "jsToolBar.prototype.elements.blocks.options.h6 = '".html::escapeJS(__('Level 6 header'))."'; "."\n". 
     105          "jsToolBar.prototype.elements.strong.title = '".html::escapeJS(__('Strong emphasis'))."'; "."\n". 
     106          "jsToolBar.prototype.elements.em.title = '".html::escapeJS(__('Emphasis'))."'; "."\n". 
     107          "jsToolBar.prototype.elements.ins.title = '".html::escapeJS(__('Inserted'))."'; "."\n". 
     108          "jsToolBar.prototype.elements.del.title = '".html::escapeJS(__('Deleted'))."'; "."\n". 
     109          "jsToolBar.prototype.elements.quote.title = '".html::escapeJS(__('Inline quote'))."'; "."\n". 
     110          "jsToolBar.prototype.elements.code.title = '".html::escapeJS(__('Code'))."'; "."\n". 
     111          "jsToolBar.prototype.elements.mark.title = '".html::escapeJS(__('Mark'))."'; "."\n". 
     112          "jsToolBar.prototype.elements.br.title = '".html::escapeJS(__('Line break'))."'; "."\n". 
     113          "jsToolBar.prototype.elements.blockquote.title = '".html::escapeJS(__('Blockquote'))."'; "."\n". 
     114          "jsToolBar.prototype.elements.pre.title = '".html::escapeJS(__('Preformated text'))."'; "."\n". 
     115          "jsToolBar.prototype.elements.ul.title = '".html::escapeJS(__('Unordered list'))."'; "."\n". 
     116          "jsToolBar.prototype.elements.ol.title = '".html::escapeJS(__('Ordered list'))."'; "."\n". 
    120117 
    121           "jsToolBar.prototype.elements.link.title = '".html::escapeJS(__('Link'))."'; ". 
    122           "jsToolBar.prototype.elements.link.accesskey = '".html::escapeJS(__('l'))."'; ". 
    123           "jsToolBar.prototype.elements.link.href_prompt = '".html::escapeJS(__('URL?'))."'; ". 
    124           "jsToolBar.prototype.elements.link.hreflang_prompt = '".html::escapeJS(__('Language?'))."'; ". 
     118          "jsToolBar.prototype.elements.link.title = '".html::escapeJS(__('Link'))."'; "."\n". 
     119          "jsToolBar.prototype.elements.link.accesskey = '".html::escapeJS(__('l'))."'; "."\n". 
     120          "jsToolBar.prototype.elements.link.href_prompt = '".html::escapeJS(__('URL?'))."'; "."\n". 
     121          "jsToolBar.prototype.elements.link.hreflang_prompt = '".html::escapeJS(__('Language?'))."'; "."\n". 
    125122 
    126           "jsToolBar.prototype.elements.img.title = '".html::escapeJS(__('External image'))."'; ". 
    127           "jsToolBar.prototype.elements.img.src_prompt = '".html::escapeJS(__('URL?'))."'; ". 
     123          "jsToolBar.prototype.elements.img.title = '".html::escapeJS(__('External image'))."'; "."\n". 
     124          "jsToolBar.prototype.elements.img.src_prompt = '".html::escapeJS(__('URL?'))."'; "."\n". 
    128125 
    129           "jsToolBar.prototype.elements.img_select.title = '".html::escapeJS(__('Media chooser'))."'; ". 
    130           "jsToolBar.prototype.elements.img_select.accesskey = '".html::escapeJS(__('m'))."'; ". 
    131           "jsToolBar.prototype.elements.post_link.title = '".html::escapeJS(__('Link to an entry'))."'; ". 
    132           "jsToolBar.prototype.elements.removeFormat = jsToolBar.prototype.elements.removeFormat || {}; ". 
    133           "jsToolBar.prototype.elements.removeFormat.title = '".html::escapeJS(__('Remove text formating'))."'; "; 
     126          "jsToolBar.prototype.elements.img_select.title = '".html::escapeJS(__('Media chooser'))."'; "."\n". 
     127          "jsToolBar.prototype.elements.img_select.accesskey = '".html::escapeJS(__('m'))."'; "."\n". 
     128          "jsToolBar.prototype.elements.post_link.title = '".html::escapeJS(__('Link to an entry'))."'; "."\n". 
     129          "jsToolBar.prototype.elements.removeFormat = jsToolBar.prototype.elements.removeFormat || {}; "."\n". 
     130          "jsToolBar.prototype.elements.removeFormat.title = '".html::escapeJS(__('Remove text formating'))."'; "."\n"; 
    134131 
    135132          if (!$GLOBALS['core']->auth->check('media,media_admin',$GLOBALS['core']->blog->id)) { 
     
    141138 
    142139          $res .= 
    143           "\n//]]>\n". 
    144140          "</script>\n"; 
    145141 
Note: See TracChangeset for help on using the changeset viewer.

Sites map