Zen TYPO3 Forum

Our TYPO3 forum is available for freelancers, professionals and clients new to TYPO3 to discuss Basic TYPO3 templating, Typoscript, extension installation, administration and help with subscription templates. Please register for an account to post.

All Categories > Zen Wireframe > Templates and TypoScript > Add font, size and color selectors to HTMarea RTE
Total Posts: 5 - Pages (1): [1]
Author: mediatech
Posted: Feb 18 2008 - 02:26 PM
Subject: re: re: Add font, size and color selectors to HTMarea RTE
fredkw1 wrote:
Sorry have been off forums for a bit.


Me too Thanks again!

Kind regards,
Greg

----
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990 . Skype: gremington
Author: fredkw1
Posted: Feb 14 2008 - 10:29 AM
Subject: re: Add font, size and color selectors to HTMarea RTE
Sorry have been off forums for a bit.

This is requires at the start of the Page 1 Typoscript to specify specific colors

------------------------------------------------------------------------

RTE.colors {
color1 {
name = Expatbm standard blue
value = #00477f
}
color2 {
name = Expatbm standard grey
value = #666666
}
color3 {
name = Light grey
value = #999999
}
noColor {
name = No colour
value =
}
}
# Specific setting for the font color selector:
RTE.default.colors = color1, color2, color3, noColor

-------------------------------------------

The individual colors are define and then they need to be specified to the color selector.


The following needs to be included in RTE.default.toolbarOrder

--------------------------------------------

fontsize
textcolor
bgcolor

--------------------------------------------

at the point where you want them to be displayed.

My full TS follows.

---------------------------------------------

RTE.colors {
color1 {
name = Expatbm standard blue
value = #00477f
}
color2 {
name = Expatbm standard grey
value = #666666
}
color3 {
name = Light grey
value = #999999
}
noColor {
name = No colour
value =
}
}
# Specific setting for the font color selector:
RTE.default.colors = color1, color2, color3, noColor
# KB Content element container templates
#######################################
TCEFORM.tt_content.container {
PAGE_TSCONFIG_ID = 2
}

# Add and remove new Frames and Page Content styles
#######################################
TCEFORM.tt_content.section_frame {
# removeItems = 1, 5, 6, 10, 11, 12, 20, 21
addItems.100 = Frame 3
}

# Template Selector
#######################################
options.stfl-tmpl2columns.enable = true
options.stfl-tmpl2columns.default_main = 2column
options.stfl-tmpl2columns.mapping {
# corresponding to [name].html (or .htm) template file
# 1column.html
1column = 0,3
# 2column.html
2column = 1,0,3
# 3column.html
3column = 1,0,2,3
# home2column.html
home2column = 0,2,3
}

# MLC 20070416 enable for rtehtmlarea
#######################################
RTE {
default {
contentCSS = fileadmin/templates/zwire/css/layout.css
allowTags (
a
, abbr
, acronym
, address
, b
, blockquote
, 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
, tbody
, td
, tfoot
, th
, thead
, tr
, tt
, u
, ul
)
allowTagsOutside (
a
, abbr
, acronym
, address
, b
, blockquote
, 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
, tt
, u
, ul
)

# Markup options (htmlArea RTE only)
enableWordClean = 1
removeTrailingBR = 0
removeComments = 1
removeTags =
removeTagsAndContents =
ignoreMainStyleOverride = 1
useCSS = 1

# Show all applicable class selectors available in the style sheet file (htmlArea RTE only)
showTagFreeClasses = 0
# Set to 0 FKW 20/12/2007

# Match these items to "TCEFORM.tt_content.header_layout.removeItems" list
# below
hidePStyleItems = address

hideButtons (
lefttoright
, righttoleft
, textindicator
, emoticon
, fontstyle

)

toolbarOrder (
cut
, copy
, paste
, bar
, undo
, redo
, bar
, image
, line
, link
, table
, bar
, spellcheck
, chMode
, bar
, about
, linebreak

, removeformat
, formatblock
, blockstyle
, fontsize
, textcolor
, bgcolor
, linebreak

, bold
, italic
, underline
, bar
, superscript
, subscript
, strikethrough
, bar
, left
, center
, right
, justifyfull
, bar

, unorderedlist
, orderedlist
, outdent
, indent
, linebreak

, tableproperties
, toggleborders
, rowproperties
, rowinsertabove
, rowinsertunder
, rowdelete
, rowsplit
, columninsertbefore
, columninsertafter
, columndelete
, columnsplit
, cellproperties
, cellinsertbefore
, cellinsertafter
, celldelete
, cellsplit
, cellmerge
)

showButtons = *

disablePCexamples = 1

proc {
remapParagraphTag =
dontConvBRtoParagraph = 1
keepPDIVattribs = align,class,style,id,xml:lang
allowTags < RTE.default.allowTags
allowTagsOutside < RTE.default.allowTagsOutside
allowedClasses = (
external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
align-left, align-center, align-right,
csc-frame-frame1, csc-frame-frame2,
component-items, action-items,
component-items-ordered, action-items-ordered,
important, name-of-person, detail
)
removeTags < RTE.default.removeTags
removeTagsAndContents < RTE.default.removeTagsAndContents

entryHTMLparser_db {
keepNonMatchedTags = 1
xhtml_cleaning = 1
keepPDIVattribs = < RTE.default.proc.keepPDIVattribs
allowTags < RTE.default.allowTags
allowTagsOutside < RTE.default.allowTagsOutside
removeTags < RTE.default.removeTags
removeTagsAndContents < RTE.default.removeTagsAndContents

tags >
tags {
br.allowedAttribs = class, style, clear
}
}

HTMLparser_db {
# Strip all attributes from these tags
noAttrib =
}
}

inlineStyle >
classesParagraph = >
classesTable = >
classesTD = >
classesLinks >
classesCharacter = >
classesAnchor >

FE >
FE < RTE.default
}

# Remove link images
classesAnchor >
classes >

config.tt_content.bodytext.proc < RTE.default.proc
}

mod.xMOD_alt_doc {
disableDocSelector = 1
disableCacheSelector = 1
}

TCEFORM.pages {
# MLC set 0 to 1 to turn off page item
layout.disabled = 0
lastUpdated.disabled = 0
newUntil.disabled = 0

target.disabled = 0
no_cache.disabled = 0
cache_timeout.disabled = 0

abstract.disabled = 0
keywords.disabled = 0
author.disabled = 0
email.disabled = 0
description.disabled = 0

fe_login_mode.disabled = 0
module.disabled = 0
}

TCEFORM.tt_content {
header_layout.altLabels.1 = Heading 1
header_layout.altLabels.2 = Heading 2
header_layout.altLabels.3 = Heading 3
header_layout.altLabels.4 = Heading 4
header_layout.altLabels.5 = Heading 5

# MLC example for adding and remove header_layout items
# header_layout.removeItems = 100
# header_layout.addItems.6 = Heading 6
# header_layout.addItems.99 = Hidden


# MLC example to remove various content types
# CType.removeItems = bullets,login,div,splash

sys_language_uid.disabled = 0
colPos.disabled = 0
section_frame.disabled = 0
spaceBefore.disabled = 1
spaceAfter.disabled = 1
}

# This can allow you to have the cache for additional pages cleared when
# saving to some page or branch of the page tree.
# @ref http://typo3.org/documentation/document-library/doc_core_tsconfig/gt_TCEMAIN/
TCEMAIN.clearCacheCmd = all
mod.SHARED.colPos_list = 0,2,3
TCEFORM.tt_content.colPos.removeItems = 1,10


Author: mediatech
Posted: Dec 20 2007 - 12:08 AM
Subject: re: Add font, size and color selectors to HTMarea RTE
Please share


Kind regards,
Gregory Remington

----
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990 . Skype: gremington
Author: fredkw1
Posted: Dec 19 2007 - 03:10 AM
Subject: Sorted
Further reading and digging has sorted things. Now up and running OK.
Author: fredkw1
Posted: Dec 18 2007 - 04:46 AM
Subject: Add font, size and color selectors to HTMarea RTE
I am trying to add font, size and color selectors to HTMarea RTE for the whole site and all users

I have followed the instructions on modifying Page TSConfig in the rtehtmlarea documents without success.

Help!

Total Posts: 5 - Pages (1): [1]
You must login to post a message to this conference.

 

CHC Forum provided by Cast Iron Coding

TYPO3 Support