[Hypercontent-users] TinyMCE WYSIWYG integration
Brought to you by:
alexvigdor
From: John F. <ja...@co...> - 2005-12-09 17:58:47
|
After Alex was kind enough to post a patch to integrate the TinyMCE WYSIWYG editor (https://clearinghouse.ja-sig.org/wiki/x/UDE) on the wiki space for hypercontent I thought I'd try it out to see if it fixed an issue I was having with the original editor. Basically, I've got a small xml file that uses a CSS style on a div element. The site I'm migrating to HC was previously written in Anakia so I already had pages as xhtml which used Anakia site files and a css file to style the content. The element looks at follows: <div class="section">Documentation</div> I set up the project-definition file such that the xml-doc contains three editors text, upload, xml (in that order). When I select Edit on the file the content shows up with the div element intact. When I select the XML editor, it is removing the class="section" attribute. It appears that in TinyMCE that it can apply styles (it has a --Styles-- drop down menu) but it doesn't provide any style options. The behavior of removing the class attribute existed in the original WYSIWYG editor as well. Two questions: Is there someway to turn off the behavior which appears to be removing class attribute when it *reads* the document into the editor? Can the TinyMCE editor be configured to read in a css file so that I can use css to style the content rather than options using the Bolding/Heading buttons? |