Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 20

Thema: TinyMCE Vorschau im Backend

      
  1. #1
    Forum Stammgast
    Registriert seit
    26.03.2008
    Beiträge
    148

    TinyMCE Vorschau im Backend

    Hallo,

    ist es auch möglich, dass man im Backend eine Vorschau der Textformatierung erhält - so wie sie auch im FE später zu sehen ist?

    Habe im tinyMCE für die Formatauswahl das Dropdow-Menü "Vorlagen" gewählt. Über die "h1", "h2" usw. wird das Format auf den Text angewendet, den er haben soll. Es ist im Projekt-CSS definiert.

    Soweit kommt man ja zum Ziel - im FE wird die Formatierung angenommen, im Backend leider nicht. Wäre schön, wenn man es dort auch schon sehen könnte.

    Hat Jemand eine IDEE? Geht es überhaupt?

  2. #2
    Forum Stammgast
    Registriert seit
    05.10.2007
    Beiträge
    182
    Du kannst in den Einstellungen das Projekt-CSS angeben.

  3. #3
    Forum Stammgast
    Registriert seit
    26.03.2008
    Beiträge
    148
    Meinst Du, wenn ich das Projekt-CSS angebe, müsste man schon im Backend die Styles sehen?

    Habe mal content_css = fileadmin/templates/GG-HF/styles.css vor den ganzen Einstellungen ins TS geschrieben, aber es hat sich nichts geändert.

  4. #4
    Forum Newbie
    Registriert seit
    10.12.2009
    Beiträge
    19
    Poste mal dein gesamtes Seiten TS zum RTE vllt sieht man dann denn Fehler!

  5. #5
    Forum Stammgast
    Registriert seit
    26.03.2008
    Beiträge
    148
    Hallo,
    nachfolgend das TSconfig zum TinyMCE. Hoffe, dass es eine Lösung gibt, sodass die über "Vorlagen" angesteuerten Befehle <h1> usw. auch im Backend das Website-CSS darstellt. Im FE gehts!

    Danke im Voraus.

    RTE.default.init {
    content_css = fileadmin/templates/GG-HF/styles.css
    theme_advanced_buttons1=justifyleft,justifycenter,justifyright,|,bold,italic,underline ,|,cut,copy,pastetext,pasteword,|,insertdate,inserttime,advhr,|,numlist,bullist,|,inde nt,outdent,|,link,unlink,|,selectall
    theme_advanced_buttons2=search,replace,removeformat,code,|,forecolor,backcolor,|,undo, redo,|,formatselect,|,spellchecker
    theme_advanced_buttons3=
    theme_advanced_buttons4=
    plugins=inlinepopups,paste,insertdatetime,advhr,advlink,searchreplace,removeformat,spe llchecker

    theme_advanced_statusbar_location = bottom
    width = 680
    height = 350
    fix_table_elements = true
    # you could override the following option if you don't want to insert links.
    file_browser_callback = typo3filemanager

    # Additional config options for the "pastetext" button.

    # If enabled double linefeeds are converted to paragraph elements when using the plain text dialog. This is enabled by default.
    paste_create_paragraphs = true

    # If enabled single linefeeds are converted to hard line break elements when using the plain text dialog. This is enabled by default.
    paste_create_linebreaks = true


    # Additional config options for the "pasteword" button.

    # If disabled then normal cleanup will not be performed after wordpaste. This option is enabled by default.
    paste_force_cleanup_wordpaste = true

    # MSIE specific option, if you set this to true both Mozilla and MSIE will present a paste dialog. If you set it to false pasting in MSIE will be done directly. This option is set to true by default.
    paste_use_dialog = true

    # MSIE specific option. If you enable this feature, a word paste will be executed when the user copy/paste content to the editor. This feature is disabled by default.
    paste_auto_cleanup_on_paste = true

    # If this feature is enabled middot lists are converted into UL lists, these will be assigned a special class.
    paste_convert_middot_lists = true

    # This option enables you to specify what class to assign to the UL list of middot converted lists. Middot lists are unindented in MS Office. This option defaults to "unIndentedList".
    paste_unindented_list_class = unIndentedList

    # This feature converts H1-6 elements to strong elements on paste, this is feature is disabled by default.
    paste_convert_headers_to_strong = true

    # This enables you to control if the word parse operation should remove or keep span elements, they will be removed by default.
    paste_remove_spans = true

    # This enables you to control if the word parse operation should remove or keep style attributes, they will be removed by default.
    paste_remove_styles = true

    # Comma separated list of search/replace chunks. Where even items is the regexp that is to be used for the search and odd values are the contents that are to be replaced.
    paste_replace_list = \u2122,<sup>TM</sup>,\u2026,...,\u201c|\u201d,",\u2019,\',\u2013,&ndash;,\u2014,&mdash;,\u2015|\u2212,-

    # This feature allows you to control whether or not class attributes are stripped when using pasteword. Valid values are:
    # all - will strip all class attributes from the pasted content. This is the default value.
    # none - will not strip any class attributes from the pasted content.
    # mso - will strip out all of the class attribute values that start with "Mso", but retain all others.
    paste_strip_class_attributes = all

    # This option enables you to specify a callback function. This callback is executed when the user pastes word content, the return value of this function will be the new content string.
    #paste_insert_word_content_callback =


    # Additional config options for the "insertdate" button.

    # Format that the time is output as.
    plugin_insertdate_timeFormat = %H:%M:%S


    # Additional config options for the "inserttime" button.

    # Format that the date is output as.
    plugin_insertdate_dateFormat = %Y-%m-%d


    # Additional config options for the "advhr" button.

    extended_valid_elements = hr[class|width|size|noshade]


    # Additional config options for the "link" button.

    # This option should contain a semicolon separated list of class titles and class names separated by =. The titles are the ones that get presented to the user in the styles drop down list and and the class names is the classes that gets inserted.
    advlink_styles =
    # This option should contain a semicolon separated list of link target titles and target names separated by =. The titles are the ones that get presented to the user in the link target drop down list and and the target names is the target that gets inserted as a target attribute.

    #theme_advanced_link_targets = Some frame=someframe;Some other frame=otherframe


    # Additional config options for the "code" button.

    # This option enables you to force word wrap for the source editor, this option is set to true by default.
    theme_advanced_source_editor_wrap = true


    # Additional config options for the "forecolor" button.

    # This option enables you to specify the default foreground color.
    theme_advanced_default_foreground_color = #FF00FF

    # This option controls the colors shown in the palette of colors displayed by the text color button. The default is a palette of 40 colors. It should contain a comma separated list of color values to be presented.
    theme_advanced_text_colors = #A09174,#7F3738,#999999

    # This option enables you to disable the "more colors" link for the text and background color menus.
    theme_advanced_more_colors = false


    # Additional config options for the "backcolor" button.

    # This option enables you to specify the default background color.
    theme_advanced_default_background_color = #C5BDAA,#999999

    # This option controls the colors shown in the palette of background colors displayed by the background color button. The default is a palette of 40 colors. It should contain a comma separated list of color values to be presented.
    theme_advanced_background_colors = #C5BDAA,#999999

    # This option enables you to disable the "more colors" link for the text and background color menus.
    theme_advanced_more_colors = false


    # Additional config options for the "formatselect" button.

    # This option should contain a comma separated list of formats that will be available in the format drop down list.
    theme_advanced_blockformats = h1,h2,h3,h4,h5,h6,h7
    }

  6. #6
    Forum Newbie
    Registriert seit
    10.12.2009
    Beiträge
    19
    Hier mal ein kleines Beispiel für die Dropdown-Auswahlmenüs
    So kannst du gleich deine Voreingestellten Stylesheets anwenden ohne sie aufwendig in der HTML Ansicht einzugeben:

    theme_advanced_styles = standard=h1,Überschrift=h2,Titel2=titel2,...
    theme_advanced_font_sizes = Normal=10px; Klein=8px; Gross=12px; Grösser=14px; Maximum=16px
    theme_advanced_blockformats = Absatz=p,Container=div

  7. #7
    Forum Stammgast
    Registriert seit
    26.03.2008
    Beiträge
    148
    Hallo,

    hab mal versuchsweise das Menü "styleselect" eingefügt.

    theme_advanced_styles = standard=h1,Überschrift=h2,Titel2=titel2,...kann man zwar anwenden - es zeigt aber weder im Backend noch im FE eine Wirkung.

    Wenn ich die HTML-Ansicht aufrufe, steht
    HTML-Code:
    <p class="h1">Test Überschrift</p>
    Das kann er nicht erkennen.

    Nur wenn ich
    theme_advanced_blockformats = h1,h2,h3,h4,h5,h6,h7 definiere, wird
    HTML-Code:
    <h1>Test Überschrift</h1>
    im HTML angezeigt. Dieses wir im FE erkannt und meinem Style von H1 zugewiesen. Jedoch, kann man es im Backend nicht in meinem Style sehen, was ich aber gerne haben würde.

  8. #8
    Forum Aktivist
    Registriert seit
    21.01.2009
    Beiträge
    51
    sicher alles im pageTS eingetragen?

  9. #9
    Forum Stammgast
    Registriert seit
    26.03.2008
    Beiträge
    148
    Ja, dort habe ich das Setup für den TinyMCE eingetragen. Soweit funktioniert er ja - nur wird im Backend nicht das aktuelle Layout angezeigt, schade.

  10. #10
    Forum Aktivist
    Registriert seit
    21.01.2009
    Beiträge
    51
    d.h. du hast nur 2 reihen von buttons? die config gfreift also?

    und das css file wird auch verwendet? mal mit body { background: orange; } oder p { color: blue; } ausprobieren...

 

 
Seite 1 von 2 12 LetzteLetzte

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Facebook Kommentare

Ähnliche Themen

  1. naw_securedl Bilder auch im backend?
    Von besttycho im Forum Alle anderen Extensions
    Antworten: 0
    Letzter Beitrag: 31.08.2009, 07:51
  2. Eigenes vhost für das TYPO3 Backend
    Von Junior im Forum FAQ - Backend
    Antworten: 5
    Letzter Beitrag: 04.06.2009, 09:27
  3. Alternative zu fe_rtenews? Nicht nur Bilder hochladen, Vorschau umgehen
    Von ddrumble im Forum News (tt_news, mininews und Co)
    Antworten: 8
    Letzter Beitrag: 19.09.2008, 09:02
  4. Backend Reagiert nicht über alternative Domain
    Von Elfwyn im Forum TYPO3 4.x Backend
    Antworten: 3
    Letzter Beitrag: 17.04.2007, 19:46
  5. tt_news: vorschau der news besser gestalten
    Von µaTh im Forum News (tt_news, mininews und Co)
    Antworten: 2
    Letzter Beitrag: 04.02.2007, 10:56

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238