Override background color w/ DynamicCSS plugin (cvs version)
2005/09/01 19:05
Viewed 4346 times
Replies: 2/3

I've successfully upgraded my cms to use the CVS version of htmlarea, including the DynamicCSS plugin. And this has led to a small problem: Often page background colors are significantly different from body text areas, and this makes it difficult to see text when the page background color is defined as a dark color. How can I override the page background color for just the editor, but leave it as is in the master css file?

I attempted to fix this by adding this into my html form, just before the textarea field:

<style type="text/css">
body {background-color: white}
</style>

But that didn't work. Any suggestions?

Thank You,
Troy

last
Re: Override background color w/ DynamicCSS plugin (cvs version)
2005/09/02 19:45
Viewed 5830 times
Replies: 1/1
by Ana
At 2005/09/01 19:05, davistv wrote:

I've successfully upgraded my cms to use the CVS version of htmlarea, including the DynamicCSS plugin. And this has led to a small problem: Often page background colors are significantly different from body text areas, and this makes it difficult to see text when the page background color is defined as a dark color. How can I override the page background color for just the editor, but leave it as is in the master css file?

I attempted to fix this by adding this into my html form, just before the textarea field:

<style type="text/css">
body {background-color: white}
</style>

But that didn't work. Any suggestions?

Thank You,
Troy

Hi!!

I didn't find how to post a question, so, i did it here.

I'd like to change the color of de calendar, for example to the blue version.

How could i do it?

Thanks 1


last
Re: Override background color w/ DynamicCSS plugin (cvs version)
2005/09/06 20:22
Viewed 5998 times
Replies: 0/0

You can load external styles into the editor using:

editor.config.pageStyle = "css code";

Normally you will use this to load a stylesheet by doing:

editor.config.pageStyle = "@import url(content.css);";

But since the pageStyle string is actually just any valid css text, you could also do something like:

editor.config.pageStyle = "@import url(content.css);";
editor.config.pageStyle += "body { background-color: #000; color: #FFF; }";

You can do both in a single assignment also, but it would probably be easier to split it up as your @import is most likely a standard customization, whereas the background color may be different based upon page.

Note: Remember that in CSS any @import directives must be the first thing in the code or they will not work.

last
CSS example does not work in Firefox
2005/09/02 13:08
Viewed 4270 times
Replies: 1/1

Hi,

The CSS example (examples/css.html) works perfectly in IE, but not in Firefox. I'm running Firefox version 1.0.6. Has anyone else experienced this - or do you know of a fix?

last
Re: CSS example does not work in Firefox
2005/09/06 21:09
Viewed 5785 times
Replies: 0/0
At 2005/09/02 13:08, bjorn wrote:

Hi,

The CSS example (examples/css.html) works perfectly in IE, but not in Firefox. I'm running Firefox version 1.0.6. Has anyone else experienced this - or do you know of a fix?

This works correctly for me in Firefox 1.0.6, Mozilla 1.7.8, and in IE 6 (all on Windows).  In Firefox load the Javascript Console (under the Tools menu) and see if there are any error messages.

last
Text Limiter
2005/09/06 08:35
Viewed 4277 times
Replies: 1/2

I was wondering if there is any way to limit the amount of text someone can type into the textarea. I have a client that has many clients that will be using the Html Editor for their own personal stuff and he needs a way to limit the amount of text to only 550 characters and no more.

Is there anyway to do this? I know there has to be.

Thank you,

Chris
Chris@runningfish.net

last
Re: Text Limiter
2005/09/07 04:33
Viewed 5884 times
Replies: 1/1

Chris, I don't know of any automatic way to do this, but it makes for a pretty simple plugin.  So...I decided to go ahead and write it.  I will publish the plugin later this week, but I wanted to be sure you knew that you were not being ignored.

(Just a disclaimer -- I do not work for dynarch.com or Interactive Tools, and am not in any other way officially connected with the HTMLArea project.  I've just been spending alot of time working on it for my own projects, so I figure I might as well share my work.  I personally think that this is the best HTML edit control ever made.)

last
» Re[2]: Text Limiter, by biteuljiouce [ quick view ]
Smiley / Emoticon support in HTMLArea
2005/09/06 09:34
Viewed 4349 times
Replies: 1/1

For custom message boards. I'm looking at incorporating HTMLArea into a message board and was wondering if there was a way to add smilies / emoticons? Thx.

last
Re: Smiley / Emoticon support in HTMLArea
2005/09/06 21:29
Viewed 6031 times
Replies: 0/0

Sure thing.  You could simply create a plugin with a new toolbar icon for the emoticons.  The CharacterMap plugin would probably make a great base -- simply modify it to insert the emoticons (as either <img>, bblcode, etc.) instead of the special HTML characters.  If you do not have the CharacterMap plugin already, you can grab it (along with other plugins and the latest htmlArea code base) from SourceForge.  Instructions available here.

last
htmlarea 3.0 rc1 instalaton help
2005/09/08 09:22
Viewed 4253 times
Replies: 1/1
by jkx1

Hi mishoo!
i want to install htmlarea 3.0 rc1. and i donwloaded the file and then put it in my website and then check the examples/core.html page and everything was perfect. i added the javacode into my includes/javascript.php file and everything was going perfect.
Now on my stories page i have ten textareas and i want to change only two of them. Below is my textarea code (just one for example)

>>>>>>>>>>>>>
echo "<br><br><b>"._STORYTEXT."</b><br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"12\" name=\"hometext\"></textarea><br><br>"
<<<<<<<<<<<<<

Can u plz tell me how i can change the above code to work with htmlarea 3.0 rc1. I am using phpnuke 7.4. plz help me.

last
Re: htmlarea 3.0 rc1 instalaton help
2005/09/08 17:23
Viewed 5910 times
Replies: 0/0
At 2005/09/08 09:22, jkx1 wrote:

[:snip:]
Now on my stories page i have ten textareas and i want to change only two of them. Below is my textarea code (just one for example)

>>>>>>>>>>>>>
echo "<br><br><b>"._STORYTEXT."</b><br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"12\" name=\"hometext\"></textarea><br><br>"
<<<<<<<<<<<<<

I'm no mishoo, but hopefully I can help...

In order to replace your textarea with htmlArea you need to be sure you set the id attribute.

echo "<br><br><b>"._STORYTEXT."</b><br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"12\" id=\"hometext\" name=\"hometext\">"
."</textarea><br><br>"

Then you can use the example found in examples/core.html to replace the textarea.  Put this Javascript wherever it will be loaded on your stories page only.  (If you include this code on any page where a textarea with the given id doesn't exist, IE will generate errors.)

var editor = new HTMLArea("hometext");
editor.generate();

Hope this helps!

last
HTMLArea Skins
2005/09/09 11:42
Viewed 4628 times
Replies: 1/1

I am having a debate with a friend about which editor to use.  He is looking at http://www.fckeditor.net/ which I do not like as it does not work well for me.  I have already dispelled one myth that he has thrown up but he quotes the availability of skins for his chosen product.  So are there "tested" skin templates that can be applied to HTMLArea to change it's loo and feel?

last
Re: HTMLArea Skins
2005/09/16 20:41
Viewed 5966 times
Replies: 0/0

I wish there were, but there are not any to the best of my knowledge. I'm sure you could create some, but have not investigated how to do this. Is anybody out there interested in creating a Skins Plugin? Currently HTMLArea loads itself using the System colors, so it will generally look appropriate on any system (XPish on WinXP, 2000ish on Win 2000, etc.)

last
Only toolbars visable
2005/09/14 19:14
Viewed 4172 times
Replies: 2/3
by Bill

After upgrading to the latest version, only the toolbars are visiable - the textarea is missing (screenshot: http://www.zx2racing.com/images/area.gif). I am using response.write to call the editor:

response.write "<script type=""text/javascript"" defer=""1"">"
response.write "HTMLArea.replaceAll();"
response.write "</script>"

I've also tried it within the body tag and no response.write's, but it has the same effect.

So i think the problem must be how the textarea's are bing created here:

case "SmallMemo" 'MUTLILINE
response.write "<td>"
response.write "<textarea name="""+ArrProductFields(i,1)+""" rows=10 cols=70 wrap=physical>"
response.write RemoveBR(cstr(chknull(ProductDB(ArrProductFields(i,1)),"")))
response.write "</textarea>"
response.write "</td>"+vbcrlf
case "BigMemo" 'MULTILINE
response.write "<td>"
response.write "<textarea name="""+ArrProductFields(i,1)+""" rows=20 cols=70 wrap=physical>"
response.write RemoveBR(cstr(chknull(ProductDB(ArrProductFields(i,1)),"")))
response.write "</textarea>"
response.write "</td>"+vbcrlf

You can see that I have the rows set to 10 and 20, and in the older version it displayed the areas as designed. Further, if I edit htmlAREA.js and set the height to be fixed, say 200px, it displays the area correctly but the textarea is not editable.

Does anyone have any ideas? I'd hate to go back to the older version because of issues with the tables and extra break tags.

Thanks.

last
Re: Only toolbars visable
2005/09/16 14:09
Viewed 5742 times
Replies: 0/0

I've got the same problem here, without response.write().
But no solution yet :(
Where can I get older versions of HtmlArea?
Thx.

last
Re: Only toolbars visable
2005/09/16 20:38
Viewed 5695 times
Replies: 1/1

At one point I experienced this same problem, but no matter what I do I can't recreate it.

One thing you may want to try is grabbing the very latest version.  (The version available from dynarch.com is currently not the latest version  The latest version, available from Source Forge, include minor fixes, and more plugins.  View this thread for information on obtaining this version.

Version Note: if you download the latest version you will have to slightly modify your code to replace your textareas with htmlareas.  Do the following:

HTMLArea.loadPlugin("PluginName"); //For each Plugin you need to load
HTMLArea.init(); //Just once - this is a new function
HTMLArea.onload = function() {
//Put your customization or loading functions here. Example:
HTMLArea.replaceAll();
return false;
}

Instead of or in addition to updating your version, you can also try providing customizations to the replaceAll() function.

var cfg = new HTMLArea.Config(); //Creates a new HTMLArea config object
cfg.width = "600px"; //overrides the textarea size
cfg.height = "200px"; //overrides the textarea size
//Indicates if the toolbar should fit inside or outside the textarea space
cfg.sizeIncludesToolbar = false;
//Replaces all textareas with your custom configuration
HTMLArea.replaceAll(cfg);

Ultimately, I recommend the following method for replacing textareas with htmlareas (requires adding id="" in addition to name="" for each of your textarea).  This gives you access to additional customizations, and also allows you to register plugins for each htmlarea.

HTMLArea.loadPlugin("TableOperations");
...
var editor = new HTMLArea("textarea-id"); //Creates a new HTMLArea object
var cfg = editor.config; //Shortcut to the configuration object
cfg.width = "600px;"
cfg.height = "200px";
cfg.sizeIncludesToolbar = false;
editor._customUndo = true; //Allows HTMLArea to manage Undo/Redo
editor.registerPlugin(TableOperations);

I hope this helps you solve your problem.  I'll keep checking back, so if you need further help just ask.

last
Google