Toolbar suggestion
2005/03/23 03:56
Viewed 7422 times
Replies: 1/1

Hello,

I like htmlarea. Hope work is going on fast ;)

I had an idea some times ago. As a PHP developer I have used a lot htmlarea for administrative web interfaces. The problem I have found is that there is to many toolbars when need to edit more than one textarea on a page.

Why not imagine the toolbar being common to all editable textareas on the page?

This toolbar could be at the top or bottom of the page an appears only when the user focus in an editable textarea. Sure it is possible.

last
Re: Toolbar suggestion
2005/05/14 08:56
Viewed 9227 times
Replies: 0/0

Hi,

A good solution here. http://nomiss.nttu.edu.tw/htmlarea3/example.html

Hope it helps.

last
Field focus
2005/03/24 07:17
Viewed 7407 times
Replies: 0/0

Hi -

I am using htmlarea on a form where it is not the first field. I love the editor but I would like to turn off the focus - or at least be able to have to focus go elsewhere. How do I accomplish this?

Thanks,

Dylan

last
I have a question how to add a span tag
2005/03/24 11:14
Viewed 7240 times
Replies: 0/0

I want to add a "span" tag to the outside of my selected range.Now I have an idea. At First I get the all html of of my selected range as a string. Then I add "<span>" and "</span>" to the outside of this string.At last I use this string to overwrite my selected range.

But I have found a strange behavior. At first I input abcdef , select it and add "span" tag. I get <span style="FONT-SIZE: 0.8em"><p>abcdef</p></span>.
Then I select this all and add "span" tag again. I want to get <span style="FONT-SIZE: 1em"><p>abcdef</p></span>, But I have gotten <span style="FONT-SIZE: 0.8em"><span style="FONT-SIZE: 1em"><p>abcdef</p></span></span>. I cann't overwrite the first "span" tag.

Who can tell me the reason of this behavior? My English is pool. I wish you can understand my question. And I post my souce code, please check it.

/**
* Resize Font size
*/
HTMLArea.prototype._resizeFont = function(param) {
var sel = this._getSelection();
var range = this._createRange(sel);
var editor = this; // for nested functions

var text_org = this.getSelectedHTML();

if (typeof text_org == "undefined") {
return true;
}else if(text_org == "" || text_org == "&nbsp;"){
//text_org = "";
return true;
}else{
text_org = text_org.replace(/<SPAN[^<]*>/ig,"");
text_org = text_org.replace(/<\/SPAN>/ig,"");
}
//editor._doc.execCommand("OverWrite", false, true);
if (HTMLArea.is_ie) {
if(param=="s"){
range.pasteHTML("<span style=\"font-size: 0.8em\">"+ text_org +"</span>");
}
if(param=="l"){
range.pasteHTML("<span style=\"font-size: 1.8em\">"+ text_org +"</span>");
}
if(param=="m"){
range.pasteHTML("<span style=\"font-size: 1em\">"+ text_org +"</span>");
}
}else{
var span = editor._doc.createElement("span");
if(param=="s"){
span.style.fontSize = "0.8em";
}
if(param=="l"){
span.style.fontSize = "1.8em";
}
if(param=="m"){
span.style.fontSize = "1em";
}
span.appendChild(editor._doc.createTextNode(text_org));
//span.appendChild(this.getParentElement());
//span.appendChild(text_org);
editor.insertNodeAtSelection(span);
}

};

last
Can't see HTML Area
2005/03/27 09:16
Viewed 7459 times
Replies: 1/1

Sometimes I find when I go to a page with HTML Area on it I can't see it, just comes up with code where its meant to be, if I refresh the page its ok and this problem happens about 20% of the time. Does anyone know why this happens?

btw, i couldn't understand this forum layout, extremely confusing so Im sorry if this is in the wrong area.

last
Re: Can't see HTML Area
2005/03/29 08:59
Viewed 9732 times
Replies: 0/0

Anyone seen this before?

last
html area removing br tags
2005/03/28 19:40
Viewed 7422 times
Replies: 0/0

I think I found a bug...

When you start typing some bold text then break a couple of times then unbold and type some more text. I've found that for some reason the break tags inside the bold tags are removed one at a time when you toggle between wysiwyg and html modes. Has anyone else experienced this? I think it happens with italic tags as well and possibly others; still testing. If anyone knows a quick fix for this problem, let me know! Otherwise the product has been perfect! Keep up the good work Mihai!

last
IE paragraph tag
2005/03/30 22:58
Viewed 7477 times
Replies: 0/0

Hi,

I'm trying to make IE simply go to the next line when I hit ENTER vs, going down two lines. I found the code in the HTMLarea.js file that references watching for the key event and putting in a <br />, however, modifying this has no effect that I can see.

Firefox works exactly as I want without modifcation.

Any suggestions?

Thank you,
Ken

last
Unwanted tags, quote escaping
2005/03/31 20:50
Viewed 7690 times
Replies: 3/6

Hello,

I've been very happily integrating HTMLArea into my company's software, and I've hit a couple of issues I haven't been able to resolve.

First, how do I prevent the addition of <html><head></head><body> ... </body></html> to the data being pulled from our database? HTMLArea is adding these tags around HTML fragments, and I really don't want them. I looked through htmlarea.js and changed function initIframe like so:

if (!editor.config.fullPage) {
doc.open();
var html = "";
//var html = "<html>\n";
//html += "<head>\n";
//if (editor.config.baseURL)
// html += '<base href="' + editor.config.baseURL + '" />';
//html += "<style> html,body { border: 0px; } " +
// editor.config.pageStyle + "</style>\n";
//html += "</head>\n";
//html += "<body>\n";
html += editor._textArea.value;
//html += "</body>\n";
//html += "</html>";
doc.write(html);
doc.close();

But that doesn't fix the issue, even if I switch to source mode and delete the tags, when I switch back to wysiwyg mode, the tags have already been added back in (the path line at the bottom shows "body" right away). Switching back to source mode confirms this, the tags have reappeared.

How do I disable those tags so I can work with HTML fragments instead of entire documents?

And the second issue: When I insert a link or image, the editor works as expected. I save the page and everything works like it should, I can verify that the data stored in the database is what I want it to be (except for the html, head and body tags described above). But when I go to edit the page, the image links come out looking like this:

<img src="\"http://metaphorstudio.com/art/a14.gif\"" />

The javascript seems to be inserting "\ before and after the url, inside the existing double-quotes. Again, I can switch to source mode to remove the quotes, but switching back to wysiwyg and back to source mode, the escapes have reappeared.

Any help would be greatly appreciated.

Thank You,
Troy

last
Re: Unwanted tags, quote escaping
2005/03/31 22:43
Viewed 9851 times
Replies: 0/0

I misspoke. The \" characters don't reappear when you switch between source and wysiwyg views, just the <html><head> and <body> tags.

Thank You,
Troy

last
Re: Unwanted tags, quote escaping
2005/04/19 22:37
Viewed 9606 times
Replies: 1/1

Hey, you might not need this anymore, but just in case: to get rid of the <html> and <body> tags in html area; don't include the "FullPage" module. Hope this helps.

last
Re: Unwanted tags, quote escaping
2005/04/20 17:19
Viewed 9460 times
Replies: 2/2

Hello,

I've got the same problem.
I would like to use HTMLarea for my CMS.
But when i add an image using HTMLarea to my HTML (or txt file to include in php) and i save it it changes the tag:
<img src="http://mydomain.com/pics/fam2.jpg"> to <img src="\"http://mydomain.com/pics/fam2.jpg\"" />.
So it automatically adds a / and \ to my code. With this slash the image is not showed with IE and Firefox!

What can i do about this?
tried some things in the htmlarea.js file but didn't work. Please help.

last
Link to same domain
2005/04/01 15:33
Viewed 7264 times
Replies: 0/0

I having trouble with the link button, it doesn't add a link when the URL is the same domain where the htmlarea is running from. It does work when the URL is pointing to any other domain or when pointing to a subdomain or page below the current domain.
I first thught it was some problem with the domain name but you can verify this yourself by going to the example pages on dynarch and inserting the text "http://www.dynarch.com" and try linking it to that exact URL.

I'm running htmlarea 3.0 RC 1 (v 1.59)

Is there a solution to the problem already? Is it solved in newer versions?

Thanks and regards,
João Coelho

last
Force htmlarea to output HTML4 NOT XHTML
2005/04/06 13:58
Viewed 7264 times
Replies: 1/1

I am having problems placing a textarea tag within the textarea tag that is replaced by htmlarea. Hhtmlarea generates empty textarea tags as "<textarea />" eventhough my site is HTML4 strict, not XHTML. Therefore the tag should be "<textarea></textarea>". Using <textarea /> causes problems on my webpage because the browser then thinks everything following it should be within the textarea and half my page appears as code within an textarea element. Can somebody point me in the right direction for this.

Thanks,
Robin

last
Re: Force htmlarea to output HTML4 NOT XHTML
2005/04/20 17:28
Viewed 9062 times
Replies: 0/0

I believe I once had the same problem (like 1.5 year ago) and solved it by renaming the tag first, and later, replace it with textarea again. Not exactly the nicest way, but the only reliable method I could think of back then.

last
installing HTMLArea
2005/04/20 22:47
Viewed 6901 times
Replies: 0/0

Hi,

I am trying to install HTML area and I get t he error message
""WARNING: _editor_url is not set! You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea', but it can be relative if you prefer. Further we will try to load the editor files correctly but we'll probably fail."

my abosulte path for HTMLarea is "/htmlarea/.

Any suggestions to trouble shoot this is welcome.

Thanks,
Anjali

last
100% cpu load, mouse over
2005/04/21 11:02
Viewed 7383 times
Replies: 1/13

Hi,

I was wondering if anyone has a clue why Internet Explorer generates a 100% CPU load when hovering over the toolbar. I guess it could be the button transparancy/hover , or just some kind of event 'thing' somewhere.

last
Google