htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Horizontal Rule add-on


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


redspider
User

Feb 16, 2003, 2:29 AM

Post #1 of 22 (5922 views)
Shortcut
Horizontal Rule add-on Can't Post

Hi all

I just finished the insert "Horizontal Rule" add-on

Just download te attchments of this post and make a new custom button in your editor.js
If you use te cell, row and table functions from Lvni you don't have to download the set_color.html
The palette has functions for Rule Height, Width, Shade or NoShade, and Rule Colors.

A special thank you to Lvni for helping me with the color button

To get the it work add next lines to your editor.js


Editor Section with: this.toolbar = [
['insertrule'],

Editor Section with: this.btnList = {
"insertrule": ['insertrule', 'Horizontale lijn', 'editor_action(this.id)', 'ed_HorizontalRule.gif'],

Editor Section with: Custom Buttons

else if (cmdID == 'insertrule') { // insert some text from a popup window
var myTitle = "";
var myText = showModalDialog(_editor_url + "popups/insert_rule.html",
myTitle, // str or obj specified here can be read from dialog as "window.dialogArguments"
"resizable: yes; help: no; status: no; scroll: no; ");
if (myText) { editor_insertHTML(objname, unescape( myText) ); }
}


Just look at www.tielt.be/testzone/example.asp to see it work.
greetz

Redspider
Belgium
http://www.tielt.be

(This post was edited by redspider on Feb 17, 2003, 6:39 AM)
Attachments: set_color.html (25.7 KB)
  ed_HorizontalRule.gif (69 B)


Benjamin
Staff


Feb 16, 2003, 5:18 PM

Post #2 of 22 (5877 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Great! That's a nice little add-on.

Holy smokes, your htmlArea has a lot of functionality!
Ben
interactivetools.com


mixmuis
User

Feb 17, 2003, 4:28 AM

Post #3 of 22 (5851 views)
Shortcut
Re: [Benjamin] Horizontal Rule add-on [In reply to] Can't Post

ik durf het bijna niet te vragen, maar zou ik een zip file van je mogen redspider met de editor, de afbeeldingen en de popups ? deze versie is echt onwijs c00l :) ik zou je onwijs dankbaar zijn.

over de spellingscontrole: in een hele oude versie die ik nog ergens heb heeft ie wel gewerkt. t vreemde is dat alle active X componenten wel gewoon actief zijn.. ik kan geen duidelijke aanwijzingen vinden waarom hij in deze versie dus niet werkt. heb jij misschien enig aanwijspunt waar ik nog kan zoeken?


AtK
User

Feb 17, 2003, 4:38 AM

Post #4 of 22 (5848 views)
Shortcut
Re: [mixmuis] Horizontal Rule add-on [In reply to] Can't Post

Please write english..
Many Userīs are from around the world, but i think the Language (and the program ;-) ) should be at least one standard...

thx ;)

greetz
AtK


wilgen
Novice

Feb 17, 2003, 7:22 AM

Post #5 of 22 (5820 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Redspider

Real very nice is it possible to get a copy of your editor.js with the images and the popup pages?

When it is possible I am very thankfull to you.

Regards,
Ruud Wilgenkamp

wilgen@multiweb.nl


redspider
User

Feb 17, 2003, 7:36 AM

Post #6 of 22 (5817 views)
Shortcut
Re: [wilgen] Horizontal Rule add-on [In reply to] Can't Post

Hi all,

I sent tonight a full version of my version to the forum, because my lunch break is over Shocked

Don't know that there are so many dutch speaking people in this forum.
greetz

Redspider
Belgium
http://www.tielt.be


wilgen
Novice

Feb 17, 2003, 7:46 AM

Post #7 of 22 (5811 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Redspider

Thanks a lot



Ruud Wilgenkamp


ronan
Novice

Feb 17, 2003, 8:17 AM

Post #8 of 22 (5805 views)
Shortcut
Re: [wilgen] Horizontal Rule add-on [In reply to] Can't Post

It works great - thx :-D

Your htmlarea is very modded ! Can you tell me what does the Word icon do ?

Regards,

Ronan


redspider
User

Feb 17, 2003, 8:29 AM

Post #9 of 22 (5804 views)
Shortcut
Re: [ronan] Horizontal Rule add-on [In reply to] Can't Post

Ronan

When people "paste" text from a Word document a push on the button cleans the word-tags
greetz

Redspider
Belgium
http://www.tielt.be


redspider
User

Feb 18, 2003, 3:34 PM

Post #10 of 22 (5756 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Hi all

Thanks to Lvni900 you can now also edit existing horizontal rules.

For the demo or download the zip-file see: http://www.tielt.be/testzone/Example.asp
greetz

Redspider
Belgium
http://www.tielt.be


ayman
Novice

Feb 19, 2003, 8:56 AM

Post #11 of 22 (5719 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

I use the version 1.2 (with a lot of modification) but your script don't work with my version. (??!!??)

You think it's difficult to make adaptation ?

Thank you.


redspider
User

Feb 19, 2003, 9:25 AM

Post #12 of 22 (5712 views)
Shortcut
Re: [ayman] Horizontal Rule add-on [In reply to] Can't Post

1.2 Mmmmm

Unfortunately I don't have version 1.2 so, i don't know how it works Frown

If you sent me a zip-file with al your files in a message, i would look at it but i don't promis I can get it working.

Why no upgrade to version 2, I see the forum and support for version 1 is removed since there is a alpha of version 3
greetz

Redspider
Belgium
http://www.tielt.be


luisfer
Novice

Feb 19, 2003, 12:35 PM

Post #13 of 22 (5688 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Dear Redspider



Looking forward to using ur horizontal rule addon. I just need the horizontal rule html.....when u post it could u please let me know.



Regards

Luis

Cool classicus@netcabo.pt


ayman
Novice

Feb 19, 2003, 2:19 PM

Post #14 of 22 (5663 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Thank you !

I have attached my "OLD" version.
Attachments: My_Editor.zip (26.4 KB)


redspider
User

Feb 19, 2003, 3:49 PM

Post #15 of 22 (5656 views)
Shortcut
Re: [luisfer] Horizontal Rule add-on [In reply to] Can't Post

Luisfer,

Normaly Wink the horizontal Rule add-on is included in the zip-file on my site.

http://www.tielt.be/testzone/example.asp
greetz

Redspider
Belgium
http://www.tielt.be


redspider
User

Feb 20, 2003, 2:11 AM

Post #16 of 22 (5629 views)
Shortcut
Re: [ayman] Horizontal Rule add-on [In reply to] Can't Post

Ayman

In attach the zip with an editor.js that make it possible to insert a horizontal Rule with properties in version 1.2

Only you must know that the version of the insert_rule.htm popup is my first version so you can not change the properties again. This because for changing the Rule properties you neet some parts of the table properties.

If you want to use this i think it's better to upgrade to version 2.x because the table properties are a major update and it take less time to upgrade to the new version than update/rewrite the 1.2 version.
greetz

Redspider
Belgium
http://www.tielt.be
Attachments: My_editor.zip (30.1 KB)


ayman
Novice

Feb 20, 2003, 4:51 AM

Post #17 of 22 (5613 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Hello !

Your script is perfect ! Thank you very much.

If i don't have upgrade the script it's because I use it in a lot of my site... but this week-end I think I upgrade all.


luisfer
Novice

Feb 20, 2003, 6:59 PM

Post #18 of 22 (5585 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Dear RedSpider

I am trying to use ur addon but gives me errors on the code below:

<script language='javascript'>
opener = window.dialogArguments;
var table = opener.getGlobalVar('_editor_table');
var insert = true;
var editdoc = editor_obj.contentWindow.document;
var ruleControl;
if (editdoc.selection.type != 'None'){
if (editdoc.selection.type == 'Control'){
ruleControl = editdoc.selection.createRange();
if (ruleControl.length < 2 ) {
if (ruleControl.item(0).tagName == 'HR') {
insert = false;
}
}
}
}
</script>


Sometimes I get its not a valid object or method??? Chinese to me.

I am using php....

Can u help

Regards

Luis


luisfer
Novice

Feb 20, 2003, 7:08 PM

Post #19 of 22 (5581 views)
Shortcut
Re: [luisfer] Horizontal Rule add-on [In reply to] Can't Post

RedSpider

Here is my test page http://www.imoforum.com/acip/test.html



Appreciate ur help

Regards

luis


redspider
User

Feb 21, 2003, 1:50 AM

Post #20 of 22 (5568 views)
Shortcut
Re: [luisfer] Horizontal Rule add-on [In reply to] Can't Post

I will look at it, but because a heavy agenda, i think it isn't possible to post you back untill after the week-end Unsure
greetz

Redspider
Belgium
http://www.tielt.be


redspider
User

Feb 21, 2003, 3:31 AM

Post #21 of 22 (5560 views)
Shortcut
Re: [redspider] Horizontal Rule add-on [In reply to] Can't Post

Hi Luisfer

This goes wrong reading and replying the forum seems to get an addiction Wink
In attach your Editor.js, but i revised it with the correct code for horizontal rule button.

I print the code also below. Problem was that your button used the code of my first version of the horizontal rule add-on, but the pop-up was that of new version, where you can edit existing rules.
// Insert Redspider Horizontal Rule

else if (cmdID == 'insertrule') { // insert horizontal rule
setGlobalVar('_editor_field',objname);
var myText = showModalDialog(_editor_url + "popups/insert_rule.html",
window,
"resizable: yes; help: no; status: no; scroll: no; ");
if (myText) { editor_insertHTML(objname, unescape( myText) ); }
}

greetz

Redspider
Belgium
http://www.tielt.be
Attachments: EDITOR.js (82.4 KB)


bgaines
Novice

Apr 7, 2003, 7:49 AM

Post #22 of 22 (5401 views)
Shortcut
Re: [luisfer] Horizontal Rule add-on [In reply to] Can't Post

Luis,

I was wondering if you could post your Image Editor code? I really like the design of it. I am using ASP, but can replace the PHP code with mine. Thanks

Brian
thanks,
Brian

 
 
 


Search for (options)