I installed version 6.0.1 (blank package) and cannot insert images via this editor.
The image icon is missing from the toolbar.
TScript:
RTE.default.proc {
allowTags := addToList(object,param,embed,img,iframe)
allowTagsOutside := addToList(object,embed,img,iframe)
entryHTMLparser_db.allowTags < RTE.default.proc.allowTags
}
Make sure to also enable the button using TSconfig:
RTE.default.showButtons := addToList(image)
Also you need to turn in "Enable images" in the extension configuration (extension manager).
For TYPO3 6.2 do the following:
In Extension Manager open the configuration of htmlAREA RTE and enable basic.enableImages.
In page-TSconfig add the following TypoScript:
RTE.default {
## Enable the image button
showButtons := addToList(image)
## Tags allowed outside p and div
## Adding img tag to the default list
proc.allowTagsOutside := addToList(img)
## Do not remove img tags
proc.entryHTMLparser_db.tags.img >
}
RTE.default.FE.showButtons < RTE.default.showButtons
RTE.default.FE.proc.allowTagsOutside < RTE.default.proc.allowTagsOutside
RTE.default.FE.proc.entryHTMLparser_db.tags.img >
Add following code to TSConfig of your root page:
RTE.default.toolbarOrder := addToList(image)
Just go to extensions, and configure rtehtmlarea extension.
Toggle Enable images in the RTE option.
Related
The divider content element is disabled for all pages via TCEFORM.tt_content.CType.removeItems := addToList([…], div) in PageTSconfig. This works just fine.
Now I want that the divider is only available for a certain subset of pages.
I defined the uppermost page in my site configuration which leads to the following Typoscript:
[site("configuration")["settings"]["pages"]["simpleLanguage"] and site("configuration")["settings"]["pages"]["simpleLanguage"] in tree.rootLineIds]
TCEFORM.tt_content.CType.removeItems := removeFromList(div)
[END]
Now when I want to insert an divider on that given pages, I can choose it from the NewContentElement Wizard, but when the form of the content element gets rendered the divider is missing in the CType select.
Divider is shown in NewContentElement Wizard
But not in the content element form.
I found out that when setting the pageuid directly, the condition is evaluated fine.
So my conclusion ist that I cannot get site information inside TSconfig.
So how can I get the information from the site config inside TSconfig?
Conditions in PageTS have been fixed for TYPO3 v10 with https://forge.typo3.org/issues/89718.
The patch has not been backported to v9 due to its complexity.
The new content element wizard uses another configuration:
https://docs.typo3.org/m/typo3/reference-tsconfig/master/en-us/PageTsconfig/Mod.html#newcontentelement-wizarditems
# PageTS
# CType "div" is in group "special"
mod.wizards.newContentElement.wizardItems.special.show := removeFromList(div)
Is there a possibility to add a textstyle to a marked text?
The following code does not work...
RTE.default.contentCSS = fileadmin/templates/css/rte.css
RTE.default.buttons.textstyle.tags.span.allowedClasses := addToList(huge)
RTE.default.proc.allowedClasses := addToList(huge)
Have the same problem. Added all by manual and can't see any changes.
Also tried:
In TsConfig
#RTE.default.preset = hit_custom
RTE.default.preset = minimal
RTE.config.tt_content.bodytext.preset = minimal
#RTE.tt_content.types.textmedia.bodytext.preset = hit_custom
RTE.config.tx_news_domain_model_news.bodytext.preset = default
in my ext_localconf.php
#https://www.thomaskieslich.de/blog/127-typo3-8x-ckeditor-konfigurieren/
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['hit_custom'] = 'EXT:huskytheme/Configuration/RTE/Custom.yaml';
Didn't get any changes. Also can't change general full, minimal or default style - all changes have no effect
Solved:
after delete full typo3temp folder rm -rf typo3temp/* and create all folder structure via Install tools i get my changes
I am using TYPO3 7.6.2 and I can't use html inside the standard table element any more, because TYPO3 escape html tags inside the table element. Is there a specific RTE configuration which I have to enable or something else? My current RTE configuration looks like the following:
RTE.default {
contentCSS = EXT:my_distribution/Resources/Public/Css/rte.css
proc {
allowedClasses := addToList(blue, button, caption, center, more, responsive, responsive2, subcaption, white)
}
showButtons := addToList(pastetoggle)
buttons {
blockstyle.tags.p.allowedClasses := addToList(caption, subcaption, white)
blockstyle.tags.table.allowedClasses := addToList(responsive, responsive2)
textstyle.tags.span.allowedClasses := addToList(blue, center, more, subcaption, white)
link.properties.class.allowedClasses := addToList(button)
pastetoggle.setActiveOnRteOpen = 1
}
}
I don't want that an editor have to use plain html tables inside a text content element or a html content element.
It was no longer supported in TYPO3 7.6 + but you can also override it by
tt_content.table.20.innerStdWrap.htmlSpecialChars >
tt_content.table.20.innerStdWrap.parseFunc = < lib.parseFunc
in your setup file
Html not longer supported for CE table.
workaround 1: use html table in combination with rte
workaround 2: revoke security changes from the following patch https://review.typo3.org/#/c/45281/, if you trust your editors
I recommend workaround 1, but I think some editors will not like this solution. So maybe it is better to develop a simple extension which can handle flexible tables.
Shortly, i needed to help a good friend, to move her complete typo3 install to another provider.
There was no chance in getting help from the developer at all.
I exported and imported the tables
downloaded all of the folder and uploaded it again
I set new InstallTool Password and added new Administrator
I updated the MySQL-Connection
Now everything seems to work correctly, BESIDES an error calling at the top of the page (where the language selection is supposed to be) saying:
ERROR: Content Element type "sr_language_menu_pi1" has no rendering definition!
For now, I tried to hide this annoying layer with CSS-property display none ;)
But it's a website where I need to have multiple languages enabled.
I have no experience with typo3, so please describe possible solutions as simple as possible.
This error happens e.g. under TYPO3 6.2.17.
You must have a sysfolder called "Templates" where you create a new extension template setup for the extension sr_language_menu. (Template Module)
Use the title "+ext sr_language_menu".
There you enter a constants part like this:
plugin.tx_srlanguagemenu {
addSelectionListHeader = 0
showCurrentFirst = 0
defaultLanguageISOCode = DE
hideIfNoAltLanguages = 1
showInactive = 0
pointerImage =
defaultLayout = 0
addLinksListHeader = 0
doNotLinkCurrent = 1
separator =
token = |
selectionListSeparator =
showCurrent = 1
useIsoLanguageCountryCode = 1
}
And you enter a setup like this.
plugin.tx_srlanguagemenu {
_CSS_DEFAULT_STYLE >
flags.stdWrap.split.wrap = <ul id="langmenu">|*| | |*| |</ul>
flag.NO.stdWrap.wrap = <li>|</li>
flag.INACT.stdWrap.wrap = <li>|</li>
flag.CUR.stdWrap.wrap = <li>|</li>
links.stdWrap.split.wrap >
}
Then go to the tab "Include static (from extensions):" and set the
Selected Items to
"Language Menu setup (sr_language_menu)" and
"Language Menu CSS Styles (sr_language_menu)"
Then go to your main template setup. (Template Module).
Edit Template "Main Template" on page "..."
Go to the tab "Includes" and add the "+ext sr_language_menu". to "Include Basis Template:". You can use the page browser in the new popup window to navigate to the Templates folder and select the record with the template name "+ext sr_language_menu".
Then you must install static_info_tables 6.2.1 or higher, and install the country specific static_info_tables extensions. Deinstall sr_language_menu and reinstall it again. Then open the Extension Manager an see the green round arrow symbol "Execute the update script".
Afterwards the error message has gone and the language menu shows up.
You can see if the templates of this extension is present on the project installation.
Might be you din not include static from template of "sr_language_menu"
Go to Web > Template > Root page
Info/Modify: edit whole template
Something like: http://screencast.com/t/jq3rggQy
cheers,
Ghanshyam
RTE still clutters any link with title="Opens external link in new window" and worse, title="Opens internal link in current window".
I've tried removing it with
RTE.classesAnchor.externalLinkInNewWindow.titleText >
RTE.classesAnchor.internalLinkInCurrentWindow.titleText >
in page TSconfig, but no luck. Actually, I'm not even sure if this has to go into TSConfig or TS.
How can I disable this legacy feature?
PS I do still use
config.extTarget = _blank
but if it's really necessary, I can turn it off
To get rid of these texts, right of the beginning of a project (before content is filled in) use this PageTS-Config:
## get rid of "Opens link in ..."
RTE.classesAnchor.externalLink.titleText >
RTE.classesAnchor.externalLinkInNewWindow.titleText >
RTE.classesAnchor.internalLink.titleText >
RTE.classesAnchor.internalLinkInNewWindow.titleText >
RTE.classesAnchor.download.titleText >
RTE.classesAnchor.mail.titleText >
To look for the right names, go into the Module "Info", select a page from the page tree, click "Page TS Config" on the Dropdown-Select on the Top, and then "RTE." on the following Dropdown-Select.
This will remove all title attributes from links when saving:
RTE.default.proc.entryHTMLparser_db.tags.a.fixAttrib.title.unset = 1