Project

General

Profile

Actions

Bug #63907

closed

RTE : Can't add the abbr button

Added by Mohamed Rebai almost 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Must have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2014-12-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,

I tried to add the abbr button in the RTE as i always did in older versions. I did exactly the same thing, but i'm not able to get it to work.

I installed the newest version of static_info_tables
In my Tsconfig, i have this code :
RTE.default.showButtons = formatblock, space, bar, space, abbr, blockstylelabel, blockstyle, space, textstylelabel, textstyle, space, bar, space, textindicator, linebreak, bold, italic, subscript, superscript, space, bar, space, insertparagraphbefore, insertparagraphafter, space, bar, space, orderedlist, unorderedlist, space, bar, space, outdent, indent, linebreak, link, insertcharacter, space, bar, space, findreplace, removeformat, spellcheck, space, bar, space, copy, cut, paste, pastetoggle, space, bar, space, undo, redo, space, bar, space, chMode, showhelp, about, linebreak, language, showlanguagemarks, linebreak, space,bar, space, user
RTE.default.toolbarOrder < .showButtons
RTE.default.hideButtons = emoticon

In my typoscript :

styles.content.links.allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,del,ins,span,h1,h2,h3,h4,h5,h6,address,dl,dt,dd, abbr,acronym

And finally, i created some abbr records, in root page

Usually, after doing all these steps, i obtain the abbr button in my RTE, not this time. I'm using TYPO3 6.2.7


Files

abbr.PNG (31.7 KB) abbr.PNG Mohamed Rebai, 2015-01-22 17:01
Actions #1

Updated by Stanislas Rolland almost 10 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #2

Updated by Stanislas Rolland almost 10 years ago

  • Status changed from New to Needs Feedback

In TYPO3 CMS 6.2, the name of the button is acronym, not abbr. This will be changed in TYPO3 CMS 7.0.

Therefore, in the list RTE.default.showButtons, replace abbr with acronym.

Actions #3

Updated by Mohamed Rebai almost 10 years ago

Already tested with acronym, usually i always put both abbr and acronym :

showButtons = formatblock, space, bar, space, abbr, acronym, blockstylelabel, blockstyle, space, textstylelabel, textstyle, space, bar, space, textindicator, linebreak, bold, italic, subscript, superscript, space, bar, space, insertparagraphbefore, insertparagraphafter, space, bar, space, orderedlist, unorderedlist, space, bar, space, outdent, indent, linebreak, link, insertcharacter, space, bar, space, findreplace, removeformat, spellcheck, space, bar, space, copy, cut, paste, pastetoggle, space, bar, space, undo, redo, space, bar, space, chMode, showhelp, about, linebreak, language, showlanguagemarks, linebreak, space,bar, space, user

Doesn't change anything, the button still doesn't show up!

Thanks

Actions #4

Updated by Riccardo De Contardi almost 10 years ago

Tried with TYPO3 CMS 6.2.9 on WAMP enviroment, PHP 5.5.12
I added to the TS config:

RTE.default.showButtons = *

but the button is still missing.

Actions #5

Updated by Mohamed Rebai almost 10 years ago

Any news here ?

Actions #6

Updated by Stanislas Rolland almost 10 years ago

This is a TypoScript syntax error.

Use RTE.default.toolbarOrder < RTE.default.showButtons

or

RTE.default {
toolbarOrder < .showButtons
}

Actions #7

Updated by Stanislas Rolland almost 10 years ago

  • Status changed from Needs Feedback to Rejected
  • Assignee set to Stanislas Rolland
Actions #8

Updated by Riccardo De Contardi almost 10 years ago

A little update:

I just tried to reproduce it in my MAMP enviroment; using a simple:

 RTE.default.showButtons = *

The abbr button is shown, so
1. I cannot reproduce the problem as far as now (I will try on Windows)
2. The following is not necessary:
RTE.default.toolbarOrder < RTE.default.showButtons

3. By the way if I try to write:

RTE.default{
  showButtons = *
  toolbarOrder < .showButtons
}

The whole RTE disappears so I guess that copying the whole showButtons configuration into toolbarOrder is not a good idea ;)

Actions #9

Updated by Stanislas Rolland almost 10 years ago

Riccardo De Contardi wrote:

A little update:

I just tried to reproduce it in my MAMP enviroment; using a simple:
[...]
The abbr button is shown, so
1. I cannot reproduce the problem as far as now (I will try on Windows)
2. The following is not necessary:
[...]

It depends what default configuration you have configured in the Extension Manager. In the case submitted, if the default configuration is 'Minimal', then the acronym button will not show up, because it is not part of toolbarOrder in the minimal default configuration.

3. By the way if I try to write:

[...]

The whole RTE disappears so I guess that copying the whole showButtons configuration into toolbarOrder is not a good idea ;)

Perhaps... any button not in toolbarOrder will not appear in the toolbar. If the value is *, no button name will match.

Actions #10

Updated by Mohamed Rebai almost 10 years ago

I changed showbuttons to *, still no abbr button (see the screenshot)

Here is my config :

// Default RTE configuration (all tables)
RTE.default {
// Available classes for HTML elements
buttons.blockstyle.tags.div.allowedClasses >
buttons.textstyle.tags.span.allowedClasses >
buttons.blockstyle.tags.table.allowedClasses >
buttons.blockstyle.tags.td.allowedClasses >
buttons.link.properties.class.allowedClasses >
buttons.textstyle.tags.span.allowedClasses >
classesAnchor >
buttons.image.properties.class.allowedClasses >
classesAnchor = external-link,external-link-new-window,internal-link,internal-link-new-window,download,mail

  1. Liste des styles de paragraphes et de textes ####
    buttons.textstyle.tags.span.allowedClasses =
    allowedClasses =
    classesAnchor.default {
    page =
    url =
    file =
    mail =
    }
// Show tags from content CSS 
showTagFreeClasses = 1
// Disable examples styles 
disablePCexamples = 1
// Tab elements to remove in the picture popup 
buttons.image.options.removeItems = magic, dragdrop
buttons.image.options.magic.maxWidth = 1000
buttons.image.options.magic.maxHeight = 1000
buttons.image.options.plain.maxWidth = 1000
buttons.image.options.plain.maxHeight= 1000
// Default target for links 
buttons.link.properties.target.default >
// Tab elements to remove in the link popup 
buttons.link.options.removeItems >
// Buttons to show 
#showButtons = formatblock, space, bar, space, abbr,acronym, blockstylelabel, blockstyle, space, textstylelabel, textstyle, space, bar, space, textindicator, linebreak, bold, italic, subscript, superscript, space, bar, space, insertparagraphbefore, insertparagraphafter, space, bar, space, orderedlist, unorderedlist, space, bar, space, outdent, indent, linebreak, link, insertcharacter, space, bar, space, findreplace, removeformat, spellcheck, space, bar, space, copy, cut, paste, pastetoggle, space, bar, space, undo, redo, space, bar, space, chMode, showhelp, about, linebreak, language, showlanguagemarks, linebreak, space,bar, space, user
showButtons = *
// Buttons to hide
hideButtons = emoticon
// Toolbar order 
#toolbarOrder < .showButtons
// Group buttons (Mozilla only) 
keepButtonGroupTogether = 1
// Hide table operations 
hideTableOperationsInToolbar = 0
// Show toggle borders item even if table operations are disabled 
keepToggleBordersInToolbar = 0
// Disable contextual menu 
contextMenu.disable = 0
contextMenu.disable = 0
// Disable color picker 
disableColorPicker = 0
// Disable color selector 
disableSelectColor = 0
// MS Word cleaning 
enableWordClean = 1
// Remove HTML comments 
removeComments = 1
// Remove HTML tags 
removeTags = font
// Remove HTML tags and their content 
removeTagsAndContents =
// Use CSS formatting when possible 
useCSS = 0
// Disable enter key for new paragraphs creation 
disableEnterParagraphs = 0
// Remove trailing BR if any 
removeTrailingBR = 1
// Hide tags in the quick tag plugin 
hideTags = font, font (full)
// Disable table attributes for table operations 
disableAlignmentFieldsetInTableOperations = 0
disableSpacingFieldsetInTableOperations = 0
disableColorFieldsetInTableOperations = 0
disableLayoutFieldsetInTableOperations = 0
disableBordersFieldsetInTableOperations = 0
// Colors available 
colors = color1,color2,color3,color4,color5,color6
}

// Processing rules
RTE.default.proc {

  1. keepPDIVattribs = xml:lang,id,class,style,align //style, align a ajouter ?
// Transformation method 
overruleMode = ts_css
// Do not convert BR into linebreaks 
dontConvBRtoParagraph = 1
// Map paragraph tag 
remapParagraphTag = p
// Tags allowed 
allowTags = a, abbr, acronym, address,blockquote, b, br, caption, center, cite, code, div, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul, dl, dt, dd, ins
// Tags denied 
denyTags >
// Add hreflang attributes
tags.a.allowedAttribs = hreflang,title,href
// Attributes to keep for P & DIV 
keepPDIVattribs = xml:lang,class,style,align
// Permet de garder les span sur la page notamment
allowedClasses < RTE.default.allowedClasses
// Tags allowed outside &lt;p&gt; and &lt;div&gt; tags 
allowTagsOutside = img,hr,table,tr,th,td,h1,h2,h3,h4,h5,h6,br,ul,ol,li,pre,address,dl,a,br
// Tags allowed in Typolists 
allowTagsInTypolists = br,font,b,i,u,a,img,span
// Keep unknown tags 
dontRemoveUnknownTags_db = 1
// Allow tables 
preserveTables = 1
// Entry HTML parser 
entryHTMLparser_db = 1
entryHTMLparser_db {
// Tags allowed 
allowTags < RTE.default.proc.allowTags
// HTML special characters 
htmlSpecialChars = 0
// Allow IMG tags 
tags.img >
// Allow attributes 
#tags.span.fixAttrib.style.unset >
#tags.p.fixAttrib.align.unset >
#tags.div.fixAttrib.align.unset >
// Additionnal attributes for P & DIV 
div.allowedAttribs = class,id,style,align
p.allowedAttribs = class,id,style,align
br.allowedAttribs = class,id
// Tags to remove 
removeTags = center, font, strike, u
// Keep non matched tags 
keepNonMatchedTags = protect
}
// HTML parser
HTMLparser_db {
// XHTML compliance 
xhtml_cleaning = 1
}
// Exit HTML parser 
exitHTMLparser_db = 1
exitHTMLparser_db {
// Remap bold and italic 
tags.b.remap = strong
tags.i.remap = em
// Keep non matched tags 
keepNonMatchedTags = 1
// HTML special character 
htmlSpecialChars = 0
} 
}
  1. Use same RTE processing rules in FE
    RTE.default.FE.proc.overruleMode = ts_css

I have an abbreviation record, and i have installed static_info_tables, in my 4.5 TYPO3 websites i have the abbr button. Not in the 6.2 TYPO3 websites!

Actions #11

Updated by Mohamed Rebai almost 10 years ago

Ok keep this issue rejected ...
I didn't set the field "Language of the abbreviation", it was only caused by that.
Didn't know this field was important ... This field should be required ..

Actions

Also available in: Atom PDF