Menu

#39 dynamic CSS Plugin

open
nobody
None
5
2006-03-12
2006-03-12
Holger Hees
No

thanks for the great 'Combo plugin'-Sample :-)

This Plugin scans on or more editorarea stylesheets
(local,file or import)and give you a combobox to
select and assign the styleclasses to the selected
content node

sorry my poor english

ps. please let me know if you find errors with
detailed error descriptions

this plugin is the port from my htmlarea plugin with
many bugfixes and extensions.

Discussion

1 2 > >> (Page 1 of 2)
  • Holger Hees

    Holger Hees - 2006-03-12

    Logged In: YES
    user_id=731288

    Tested with:
    Mozilla Firefox 1.5 on Linux
    Internet Explorer 6.0.29 on Windows XP

    known bugs:
    it works only with one editor instance

     
  • Alfonso Martinez

    Logged In: YES
    user_id=1356422

    Nice plugin, I did something similar but for sure it will be
    interesting to check this one.

    I noticed a little problem: if the plugin is loaded but the
    toolbar doesn't have the "button" then the plugin fails in
    this line:
    dynamicCSSCombo._ItemsHolderEl.innerHTML='';

    (I usually have a bunch of plugins around but depending on
    the toolbar they are enabled or not)

     
  • Holger Hees

    Holger Hees - 2006-03-18

    version 0.2.1 with minor Bugfixes (thanks to alfonsoml)

     
  • Holger Hees

    Holger Hees - 2006-03-21

    bugfixes

     
  • Michal Gabrukiewicz

    Logged In: YES
    user_id=1516620

    cool plugin, i like it. I use IE and for me the editor gets
    more than 100% width when I use your plugin. when I turn it
    off the editor uses exactly 100% of width ... there must be
    something wrong with the HTML ....
    do you have some time to look through this or may I help
    you?

     
  • Michal Gabrukiewicz

    Logged In: YES
    user_id=1516620

    another info for it: it seems that undo isnt supported.

     
  • Holger Hees

    Holger Hees - 2006-05-11

    Logged In: YES
    user_id=731288

    hi gabru,

    i will work on undo support next week.
    the problem with 100% width bug i would be happy when you
    help me.

    sorry my poor english.

     
  • Michal Gabrukiewicz

    Logged In: YES
    user_id=1516620

    i have solved the width problem:
    i put just another DIV-element arround the editor with 100%
    and then it worked for me.

    thanks for undo in advance.
    the following things would be nice:
    - it would also be nice to have a live preview of the
    styles in the combo.
    - customizing the description of the combo. now it show CSS
    but i want to change it via config. because i need it
    multilanguage.
    - styles like div.classname {} are ignored. so classname
    for a specific element

    would be cool to have all this stuff. i am working on an
    opensource content manager and will use your plugin. hence
    i will promote it on my site as well.

     
  • Michal Gabrukiewicz

    Logged In: YES
    user_id=1516620

    hi hhees, have you seen the new version of the FCKEditor.
    its quite cool. unfortunately your plugin is not working
    with it anymore. do you think you could fix this? let me
    know if you need some help.
    would appreciate any fixes....

     
  • Holger Hees

    Holger Hees - 2006-05-18

    Logged In: YES
    user_id=731288

    hi gabru,

    i will modify the plugin when the final version of
    fckeditor is out. but you fell free to send me bugfixes
    before the final version.

     
  • rodes

    rodes - 2006-06-16

    Logged In: YES
    user_id=1541130

    i made all like is in readme.txt but the combo box do not
    appear!! can you give me a clue to what happened

     
  • rodes

    rodes - 2006-06-16

    Logged In: YES
    user_id=1541130

    i made all like is in readme.txt but the combo box do not
    appear!! can you give me a clue to what happened

     
  • rodes

    rodes - 2006-06-16

    Logged In: YES
    user_id=1541130

    it was my mistake!!! i discover the error!! great plugin!!!
    thanks anyway

     
  • rodes

    rodes - 2006-06-16

    Logged In: YES
    user_id=1541130

    another problem: when i go to the source code in the editor,
    and after that return to editor, the css combobox stops
    working!!! can you tell me something about that!!!

     
  • rodes

    rodes - 2006-06-16

    Logged In: YES
    user_id=1541130

    it's me again!!! i seen this in ie6!! in mozilla works fine!!!

     
  • Holger Hees

    Holger Hees - 2006-06-27

    bugsfixes for fckeditor 2.3.1-cvs

     
  • Omonymos

    Omonymos - 2006-08-26

    Logged In: YES
    user_id=1584361

    Hi,

    Nice plugin.
    I made a litle mod to your plugin in order to add PREVIEW OF
    STYLES IN COMBO BOX. Please read the following changes:

    In the original fckplugin.js file go to line 54 and add the
    following code:

    var oTargetDoc = dynamicCSSCombo._Panel.Document ;
    // Add the Editor Area CSS to the Styles panel so the
    style classes are previewed correctly.
    var aCSSs = FCKConfig.EditorAreaCSS ;
    for ( var i = 0 ; i < aCSSs.length ; i++ )
    FCKTools.AppendStyleSheet( oTargetDoc, aCSSs[i] ) ;
    // For some reason Gecko is blocking inside the
    "RefreshVisibleItems" function.
    if ( ! FCKBrowserInfo.IsGecko )
    oTargetDoc.OnBeforeClick = this.RefreshVisibleItems ;

    That way you can preview the styles in the combo box. I got
    this code from (i dont remember exactly) the original FCK
    source code (probably from the FCK style combo box but i
    cant remember now :) )

     
  • Omonymos

    Omonymos - 2006-08-26

    Logged In: YES
    user_id=1584361

    Sorry but you should change on more line for the preview of
    the styles:

    Go to line 101 of the original file and change it to:

    dynamicCSSCombo.AddItem(dynamicCSSStyleNames[tag][cssClass],
    '<span class=\"' + cssName + '\">' + cssName + '</span>');

    bye

     
  • Holger Hees

    Holger Hees - 2006-08-29

    additional credits to Omonymos and extended preview

     
  • voskat

    voskat - 2006-11-13

    Logged In: YES
    user_id=1641190

    BUG:

    You always have to click inside the editing area before the
    pulldown menu can work.
    If you click the pulldown menu straight away, you only get
    an empty div.

     
  • rodes

    rodes - 2007-03-21

    Logged In: YES
    user_id=1541130
    Originator: NO

    Can anybody tell me if how can i use this plugin in Fckeditor 2.3.2?

    It works well, then when i insert an image or a table and when i delete that image, gives me a javascript error in ie6.

    Error
    FCKSelection.GetSelectedElement().parentElement its null or not an object

     
  • Zimba

    Zimba - 2007-06-29

    Logged In: YES
    user_id=1831461
    Originator: NO

    Hello,
    I am having an issue with DynamicCSS plugin 0.4 with fckeditor version 2.4.3
    In IE 6 I get the Alert box error "Object doesn't support this property or method"
    IN FireFoxError 2.0 the error seems to come from fckplugin.js line 268 "cssElement[0].toUpperCase().trim();" is not a function

    The CSS drop down boxes doesn't load the style sheet and only "normal" shows in the box.

    This is then stopping the page form from submiting correctly.

    Can anybody help? ....please :)

     
  • rodes

    rodes - 2008-04-01

    Logged In: YES
    user_id=1541130
    Originator: NO

    Hi i'm having the same problem like zimbadonn in the new version of Fckeditor, Do you already have a solution for this?

    Thanks

     
  • Marat Shornikov

    Marat Shornikov - 2008-06-05

    Logged In: YES
    user_id=2108443
    Originator: NO

    To run in new fckeditor version (test 2.5) replace "trim" to "Trim" in plugin code.

     
  • Marat Shornikov

    Marat Shornikov - 2008-06-05

    Logged In: YES
    user_id=2108443
    Originator: NO

    To run in new fckeditor version (test 2.5) replace "trim" to "Trim" in plugin code.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.