webspot

more about the WYSIWYG editor





The WYSIWYG Editor is more than just text on your screen.  It's actually code embedded into your website.  Below, you will learn more about what the code does and what it means




In the example below, you can see a linked sentence and a normal text sentence underneath it:

sentences___WYSIWYG

What you can't see is the HTML code that is "hidden" underneath (click the toggle html button:toggle_html) :

sentences___html 

As you can see, there is code wrapped around the text.  Both sentences are wrapped in a paragraph tag; the first sentence is linked to the design section of the site and is wrapped around a DIV tag.  A DIV tag defines that sentence as its own section within the code.

Seeing this code is important because, while What You See Is What You Get, there is still underlying code enabling you to see what's in the WYSIWYG Editor. 



Right-Clicking in the WYSIWYG Editor


Adjustments can be made within the WYSIWYG Editor by right-clicking an area of text.  You can remove the code wrapped around the text by highlighting the text and right-clicking:

sentences___remove__p_

As you can see, you can remove the paragraph element.  Doing so will remove anything within the paragraph parameters, and you will get a warning before going forward:

sentences___remove__p___

Since both sentences are included within the paragraph parameters, by removing the paragraph element, you remove both sentences entirely:

sentences____p__removed

The code is removed, too:

sentences____p__removed_html



Removing Individual Tags & Elements


If you put the cursor next to the linked sentence and right click, you can remove the DIV tag:

sentences___remove__div_

You will get a warning confirming you want to remove the element before continuing:

sentences___remove__div___

This will result in the liked sentence being removed, but notice the blue cursor:

sentences____div__removed 
The blue cursor is there because the link still remains.  If you click the HTML toggle button (toggle_html), you can see the link is still present:

sentences____div__removed_html

If you were to delete the second sentence now:

sentences___delete_2nd_sentence___div__

sentences___2nd_sentence_gone___div__

You will see there is still code (toggle_html) even though there is no text shown:

sentences___2nd_sentence_gone_html___div__

As you can see, there is still a paragraph tag wrapped around linked code.  In order to remove this code, right click again and remove the paragraph tag:

sentences___remove__p___div_

Again, you'll be prompted to make sure you want to remove the paragraph tag:

sentences___remove__p___ 

Once you get rid of the paragraph tag, you'll see there is now no code left:

sentences___no_code___div__
simple template