Hello,

i use the qx.ui.embed.HtmlArea. I want to insert my own content in the
HtmlArea . Thats no problem with qooxdoo:
HtmlArea(String value, (String | Map | null) styleInformation, String
source)

Now i want to add my own stylesheet rules. To do this i have one
stylesheet-file that includes all sub-files. (/css/layout.css) So that my
content in the htmlarea looks like the content before the htmlarea was
rendered.

Because i can only define style Information like { “*” : “font-size: 12px” }
i add the stylesheet tag after my content (see sourcecode below at point 1).
Now the problem is that qooxdoo insert default tags around the code (look on
the picture), that influenced my own stylesheet rules.

Is there an option to hide this tags? 


CODE:

qx.Class.define("clx.cms.ui.editable.html.Editor",
    {
        extend : qx.ui.embed.HtmlArea,

        /**
         * @param element <Element> The editable element
         */
        construct : function(element) //[object HTMLDivElement]
        {
          //Point 1
          this.base(arguments, element.innerHTML+'<style type="text/css">
@import url("/css/layout.css"); </style>' ); 

         } ....




http://qooxdoo.678.n2.nabble.com/file/n5583130/Unbenannt.jpg 
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/insert-own-stylesheet-rules-in-HtmlArea-tp5583130p5583130.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to