Advanced HTML Editor 3 Support Product Page

This topic was archived by Teodor Kuduschiev on 8/15/2013 1:06:17 PM
reason: Topic has been exhausted.
Answered

Starting with Paragraph

Asked 30 Aug 2012 15:24:37
3
have this question
30 Aug 2012 15:24:37 Bart Garner posted:
Is there a way to get the Editor to start with NO code in it rather than the tags <p></p>?
Even on update pages, if you have a box with nothing in it, when you save your page, HTML Editor 3 will insert <p></p> in every empty box.
I do not want <p> tags and I do not want to have to remove them each time.
I tried seeing the Enter handling to <br> but it still defaults every new box to <p></p>

Replies

Replied 30 Aug 2012 15:26:40
30 Aug 2012 15:26:40 Bart Garner replied:
This happens in every single instance of using the HTML Editor. I do not have a page you can reach without credentials but a simple test will show you what I mean.
I actually have a workaround, if you insert &nbsp; as the Initial Value it will over-ride the <p></p> but I need it absolutely blank.
Replied 30 Aug 2012 15:27:53
30 Aug 2012 15:27:53 Teodor Kuduschiev replied:
Hello Bart,

This is how the editor works. It is not possible to disable this.
Replied 30 Aug 2012 16:19:39
30 Aug 2012 16:19:39 Bart Garner replied:
That is a very disappointing answer. It would seem that the <p></p> has been hard coded into your code so it should be easy enough to remove.

Other HTML Editors do not have this problem.
Replied 30 Aug 2012 17:20:10
30 Aug 2012 17:20:10 Teodor Kuduschiev replied:
Actually this is not a problem. That is how the extension works.
Replied 30 Aug 2012 18:10:53
30 Aug 2012 18:10:53 Bart Garner replied:
Actually, it is a problem.

What you meant to say is:
We at DMX Zone really don't care if you don't like the way we designed it.

There is no valid reason for you to insert any formatting in a blank edit box.

Rather than insulting your customers, why not politely consider suggestions for improvement as just that?
Replied 31 Aug 2012 11:14:23
31 Aug 2012 11:14:23 Teodor Kuduschiev replied:
Hello Bart,

There are several reasons to insert any formatting in a blank edit box:
  • If there is no a default <p> tag in it then you can't create any block elements anymore later
  • It could be left away if you just wanted to edit some simple text and only have some formatting like bold and italic, that works fine in every browser. BUT Some browsers create automatically a <p> tag when pressing enter, other create a <div> and other mixing stuff or do not work.
  • As the behavior is different with every browser and most probably you as a client want to use this not only in ONE browser this is the solution in order to get the same behavior in each browser


Nobody is trying to insult you in any way.
As i already posted - the extension works this way and this won't be changed.
Replied 31 Aug 2012 11:50:50
31 Aug 2012 11:50:50 Bart Garner replied:
I am not talking about what happens when you hit Enter.
I am referring to the fact that your extension puts <p></p> in an otherwise blank box.

If the end user wants that box blank, they will have to remove those tags EVERY time they update that page.

As you know <p></p> will take up whatever formatting your <p> tag has in CSS which will potentially alter the look and spacing of a web page.

That is a flaw in design.
Replied 31 Aug 2012 11:56:50
31 Aug 2012 11:56:50 Teodor Kuduschiev replied:
Both of the things - the empty <p></p> and the hit enter behavior are connected.

If the users want that box blank they most probably do not need any rich text editor but a simple text box.

Please check once again the explanations i posted in my last response.
Replied 01 Sep 2012 00:17:53
01 Sep 2012 00:17:53 Bart Garner replied:
And what if the end user wants a box blank sometimes and not blank other times?





Replied 01 Sep 2012 06:19:51
01 Sep 2012 06:19:51 Teodor Kuduschiev replied:
Unfortunately it is not possible to remove the initial <p> tags inserted.
Replied 20 Feb 2013 01:47:39
20 Feb 2013 01:47:39 Bart Garner replied:
You need to fix this. There are very valid reasons why the edit box should be left blank. Other HTML editors do not have this bug.
Replied 20 Feb 2013 07:51:57
20 Feb 2013 07:51:57 Teodor Kuduschiev replied:
Hello Bart,

As i explained in my previous post:


QuoteThere are several reasons to insert any formatting in a blank edit box:

If there is no a default <p> tag in it then you can't create any block elements anymore later
It could be left away if you just wanted to edit some simple text and only have some formatting like bold and italic, that works fine in every browser. BUT Some browsers create automatically a <p> tag when pressing enter, other create a <div> and other mixing stuff or do not work.
As the behavior is different with every browser and most probably you as a client want to use this not only in ONE browser this is the solution in order to get the same behavior in each browser

Replied 20 Feb 2013 17:46:06
20 Feb 2013 17:46:06 Bart Garner replied:
You are missing the point entirely.

I need a rich text editing box.

Here is the scenario. A News Story, with a title, lead in and story. At times, the Lead In is enough to tell the whole story and the 'story' field is not required.

If there is content in 'story', a conditional expression shows a link to Read More. If 'story' is blank, it will not show the link.

Because your extension pre-populates with <p></p>, even on updating, the field is never blank and so the link will show.

There are several other HTML Editors that do not do this, because it is wrong to do so. No editor should EVER change content unless there is a specific request by the user to do so.

By the way, if I delete the extraneous code, flip back to the WYSIWYG view and begin typing I can then CHOOSE to create that first passage as a paragraph or not. <p> as you know, denotes certain styling cues that may or may not be appropriate. Your justification for the default tag is not true.

Replied 11 Mar 2013 15:02:03
11 Mar 2013 15:02:03 Dick Medema replied:
Hello Bart,
The solution:
Hit a space between "height:700px"> </textarea>" in the cource code from textarea code of the editor

<textarea id="cnt_content1" name="cnt_content1" class="dmxEditor" style="width:750px;height:700px"> </textarea>


Have coding fun,
Gr,
Dick
Replied 11 Mar 2013 15:16:04
11 Mar 2013 15:16:04 Bart Garner replied:
Brilliant!
Thank you for that tip.
Replied 15 Aug 2013 12:58:38
15 Aug 2013 12:58:38 phil vouers replied:
pretty poor when the member solves the problem and dmxzone ignores it! I have found some of the responses from the creators pretty poor also. Just shows the quality of the programmer

Reply to this topic