tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/18523-single-line-of-wysiwyg-does-not-add-html-tagsCascade CMS: Discussion 2014-06-30T18:22:08Ztag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T14:44:05Z2014-06-30T14:44:05ZSingle line of WYSIWYG does not add HTML tags<div><p>Hi,</p>
<p>The behavior you are encountering is functionality coming from
the WYSIWYG library (TinyMCE), where hitting enter will
automatically add a <code><p></code> tag for you. If you are
hitting enter after adding initial content, it will surround the
first line with a <code><p></code> for you as well.</p>
<p>If you would like to add the two lines without adding the
<code><p></code> tags, you can hold the SHIFT key when
hitting enter. This will create a <code><br/></code> to break
the two lines.</p>
<p>If you would like to add the <code><p></code> without
hitting enter to add multiple lines, you can use the
<strong>Format</strong> dropdown within the first row of the
WYSIWYG's toolbar to surround the content with a
<code><p></code>.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T14:49:07Z2014-06-30T14:54:33ZSingle line of WYSIWYG does not add HTML tags<div><p>Thank you for the prompt response!</p>
<p>Do you know if there is a way to force a single line to have
<code><p></code> tags around it?</p></div>ces55739tag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T14:58:24Z2014-06-30T14:58:24ZSingle line of WYSIWYG does not add HTML tags<div><p>Not a problem at all.</p>
<p>Because this is relating to the way TinyMCE is being
initialized, I believe the only ways to accomplish this would be to
either:</p>
<ul>
<li>Use the Format dropdown as I mentioned previously.</li>
<li>Add default content to your WYSIWYG field that includes a
<code><p></code> tag in it. When your user replaces the
default content, the <code><p></code> tag should remain</li>
</ul>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T15:01:02Z2014-06-30T15:01:02ZSingle line of WYSIWYG does not add HTML tags<div><p>Perfect. Thanks for the help.</p></div>ces55739tag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T15:13:39Z2014-06-30T15:13:39ZSingle line of WYSIWYG does not add HTML tags<div><p>Not a problem at all. I'm going to go ahead and close this
discussion, please feel free to comment or reply to re-open if you
have any additional questions.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T16:49:16Z2014-06-30T16:49:16ZSingle line of WYSIWYG does not add HTML tags<div><p>Sorry to reopen this, but I would like to pursue the "add
default content" option you mentioned. How would I go about doing
that?</p>
<p>Is there a way to add it to the base-asset's WYSIWYG to apply to
all?<br>
Or maybe the Data Definition?</p></div>ces55739tag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T17:35:25Z2014-06-30T17:35:25ZSingle line of WYSIWYG does not add HTML tags<div><p>Not a problem at all.</p>
<p>Unfortunately, there is no way to add default content to the
WYSIWYG that is automatically applied to pages without a Data
Definition (ie the DEFAULT WYSIWYG), unless you use a base asset
for your Asset Factory.</p>
<p>That being said, what you would do is create a Page or
Structured Data Block (generally tucked away in a hidden <em>base
assets</em> folder) that has the desired setup (ie Content Type,
Data Definition, etc) and you would add some default content to the
WYSIWYG. Then, you create a Page Asset Factory and point the
<em>Base Asset</em> field at that new page. When the new Asset
Factory is used, the resulting new page will be pre-filled with
that content and any other data you filled in.</p>
<p>For more information regarding Asset Factories and creating new
ones, please feel free to <a href=
"http://www.hannonhill.com/kb/Asset-Factory/#creating-an-asset-factory">
view this page on our Knowledge Base</a>.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T17:49:39Z2014-06-30T17:49:39ZSingle line of WYSIWYG does not add HTML tags<div><p>I understand that you can add text/formatting to the base asset
and then it works just like you said.</p>
<p>However, is there a way to cause the WYSIWYG to be a paragraph
type by default? or heading 1? etc.</p></div>ces55739tag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T18:06:16Z2014-06-30T18:06:16ZSingle line of WYSIWYG does not add HTML tags<div><p>Sorry for the confusion, are you referring to customizing the
WYSIWYG so the initial text is wrapped in a <code><p></code>
tag rather than nothing at all? If so, it is not currently possible
to customize the WYSIWYG's configuration.</p>
<p>There is an related suggestion on our <a href=
"http://ideas.hannonhill.com/forums/52559-ideas-for-cascade-server/suggestions/679583-ability-to-supply-different-tinymce-configurations">
Idea Exchange</a> for such a feature; however. I highly recommend
voting the idea up if you would like to see this functionality
added to a future release of Cascade Server. Let me know if you
need access to the Idea Exchange and I will send over an
invitation.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T18:11:11Z2014-06-30T18:11:11ZSingle line of WYSIWYG does not add HTML tags<div><p>Thats what I was looking for. Thank you! And as always I
appreciate your prompt responses.</p></div>ces55739tag:help-archives.hannonhill.com,2010-02-09:Comment/335966422014-06-30T18:22:07Z2014-06-30T18:22:07ZSingle line of WYSIWYG does not add HTML tags<div><p>Not a problem at all. My apologies for not being able to provide
you with a simple solution, but definitely feel free to vote up
<a href=
"http://ideas.hannonhill.com/forums/52559-ideas-for-cascade-server/suggestions/679583-ability-to-supply-different-tinymce-configurations">
the idea on our Idea Exchange</a>.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith