📄 readme.html
字号:
<p><dt><b>Undo/Redo doesn't work</b></dt>
<dd>We update a hidden field every time you make a change in the editor so the hidden field will be
submitted when you submit the form. The way undo/redo works in Internet Explorer it seems to reset
the undo buffer every time you use JavaScript to set the value of a form element or otherwise make
changes to the page. Because of this the built in undo/redo functionality of the browser doesn't
work. We hope to implement our own undo/redo functionality at a future point.</dd></p>
<a name="bugs2"></a>
<p><dt><b>Relative paths are converted to absolute paths</b></dt>
<dd>Internet Explorer has a tendency to convert relative paths into absolute paths. We've seen some
implementations of WYSIWYG editors that maintain relative paths "better" than others but certain operations
(such as dragging and dropping, etc) still convert relative paths to absolute paths. We hope to find a
workaround for this in a future version.
</dd></p>
<a name="bugs3"></a>
<p><dt><b>HTML header info (eg: <head>, <body>, etc) doesn't get preserved</b></dt>
<dd>This is due to Internet Explorer and the way the editor works. The editor already has a
HTML header of its own so inserting another one confuses the browser and the content gets thrown
away. The best solution is to have another plain text textarea field for HTML header information.</dd></p>
<a name="bugs4"></a>
<p><dt><b>Some tags (eg: noframes, noscript, etc) doesn't get preserved</b></dt>
<dd>This is a result of how Internet Explorer works. It seems to discard certain tags that it
doesn't need to display. Because htmlArea reads the content back from the browser it cannot
preserve content the browser has "thrown away".</dd></p>
<a name="bugs5"></a>
<p><dt><b>htmlArea doesn't work with multiple textareas that have the same name</b></dt>
<dd>If you have two or more textareas with the same name on the same page and you try
to convert one or more of them into a WYSIWYG editor htmlArea won't work. This is because htmlArea
looks up the textareas by name in the entire page, not just inside a specific form. There's currently
no workaround for this. We hope to resolve it in a future release.</dd></p>
<a name="bugs_ssl"></a>
<p><dt><b>Why do I get "non secure items" warnings when using htmlarea on a secure (SSL) https:// page?</b></dt>
<dd>This is a bug/feature of Internet Explorer. Even if you get unsecure warnings your form contents should
still be submitted securely.
<p>htmlArea uses an <iframe> to contain the editor and because the contents of the iframe isn't being
loaded off a secure site, Internet Explorer thinks the iframe is unsecure. The problem is, the iframe doesn't
load anything off any site, it's blank, it doesn't even have a src attribute. We just create an empty iframe
and then use javascript to update it. We hope to have this fixed in a future release.
<p>Note: There's a clever workaround for this problem posted in the forum <a href="http://www.interactivetools.com/iforum/P3686/">here</a>.
The only issue with it is that can cause the back button to not work as intended (it goes back in the iframe first).
</dl>
<!-- CHANGE LOG -->
<hr>
<a name="changelog"></a>
<p><span class="subhead">Change Log</span> <a href="#top" class="backtotop">back to top</a></p>
<dl>
<!-- ---------------------------------------------------------------------------- -->
<!--
<p><dt><b>Version 2.00 (beta1)</b> (Released: August 19, 2002)</dt><ul>
<li>Initial Release</li>
</ul></p>
-->
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.03</b> (Released: December 17, 2002)</dt>
<p><ul>
<li><b>new license</b> - switched to "BSD style" software license. The "About this editor" button is no longer required.
<li>readme updates - minor updates, spelling, and grammer fixes.
</ul>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.02a</b> (Released: December 5, 2002)</dt>
<p><ul>
<li>fixed error in readme.html example code under "How do I add htmlArea to my web page?".
</ul>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.02</b> (Released: December 5, 2002)</dt><ul>
<p><dt><b>Bug Fixes</b> (Thanks to everybody in the forum for contributing and reporting bugs!)</dt>
<li>fix nested script tag error (thanks to Phil Revill)
<p><dt><b>New Features</b></dt>
<li>added 'replaceNextlines' config option to replace nextlines with spaces on output
<li>added 'plaintextInput' config option to replace nextlines with <br> tags on input
</ul>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.01</b> (Released: December 3, 2002)</dt><ul>
<p><dt><b>Bug Fixes</b> (Thanks to everybody in the forum for contributing and reporting bugs!)</dt>
<li>fixed "function not found" error for non IE5.5+ browsers (thanks to slowhand)
<li>popup editor - fixed javascript error caused during launch of popup (thanks to slowhand and Chlorel)
<li>popup editor - fixed toolbar 'linebreak' error (thanks to fbridge9 and RekiM)
<p><dt><b>Documentation Updates</b></dt>
<li>Add two new questions to readme.html
<ul>
<li> Why do the toolbar buttons take so long to load when I have multiple htmlArea editors on the same page?<br>
<li>Why do I get "non secure items" warnings when using htmlarea on a secure (SSL) https:// page?<br>
</ul>
</p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.00 (official release)</b> (Released: November 25, 2002)</dt><ul>
<p><dt><b>New Javascript Functions</b></dt>
<li>editor_getHTML(objname) - return HTML content of editor
<li>editor_setHTML(objname) - set HTML content of editor
<li>editor_appendHTML(objname) - add HTML content to editor
<p><dt><b>New Features</b></dt>
<li>Popup "fullscreen" editor now has minimize and maximize buttons (switched from ModalDialog to popup window)
<p><dt><b>Bug Fixes</b> (Thanks to everybody in the forum for contributing and reporting bugs!)</dt>
<li>"Create Table" popup now creates tables with the correct number of cols and rows (thanks to Corey)
<li>Clicking on images no longer causes error when you have "CSS style pulldown" enabled (thanks to Virrdo)
<li>Fixed bug that prevented external stylesheets from working properly (thanks to slowhand)
<li>fixed javascript errors in Mozilla 1.0 (thanks to slowhand)
<li>moved browser detection code to editor page to prevent javascript errors from older browsers and prevent the editor from being loaded unless it's needed.
<li>submitting empty htmlarea now submits nothing "" instead of "<p>&nbsp;</p>"
<li>Popup "fullscreen" editor no longer generates error on "<>" html mode change
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.00 (beta2)</b> (Released: October 16, 2002)</dt><ul>
<p><dt><b>New Docs</b></dt>
<li>created new readme.html with install instructions, faq, and lots of information
<p><dt><b>New Features</b></dt>
<li>added support for stylesheets
<li>get enlarge/shrink window working
<li>get context menu working (still disabled by default, needs more code for functionality)
<li>allow user to change ANY option in internal config from calling page
<li>added _editor_filterOutput function that's called on form submit
<li>added insert table button
<p><dt><b>Bug Fixes / Optimizations</b></dt>
<li>organized associated files into directories
<li>fixed bug that caused htmlarea to sometimes not display last entered content when user pressed back in their browser.
<li>moved about window into a separate file to reduce size of editor
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 2.00 (beta1)</b> (Released: August 19, 2002)</dt><ul>
<p><dt><b>visual changes</b></dt>
<li>added mouseover/mouseoff events and style for toolbar ui buttons
<li>update toolbar to take up less space and be smaller
<li>display point sizes beside HTML font sizes (eg: 7 (36px)
<li>change "about this editor" icon to an "i"
<li>created a help popup (content still needs to be written).
<li>added version number to about page.
<p><dt><b>code changes</b></dt>
<li>added "defer" to script tag to prevent editor from being created until page loads
<li>simplified header that needs to be added to pages that contain editor
<li>generated script include tag using _editor_url so users don't have to enter URL twice
<li>moved CSS for editor toolbar buttons into editor.js
<li>switched to using object to pass configuration arguments to editor_generate
<li>general code improvements, optimizations and re-organization
<li>added hooks for keypress events for future use
<p><dt><b>new features</b></dt>
<li>added pulldown for CSS style classnames
<li>added many many more config options including:
<li>ability to select which toolbar elements you want displayed
<li>ability to specify the order of toolbar elements
<li>ability to specify fonts, sizes, and CSS styles for pulldowns
<li>ability to set default font and style used in editor window
<li>debug flag that lets you see the source of the WYSIWYG field at all times
<li>add more sample code and comments showing how to add custom buttons
<p><dt><b>bug fixes</b></dt>
<li>fixed error caused when height/width were manually specified (reported by jpeto, thanks!)
<li>"about this editor" window now works when in textedit mode
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 1.05</b> (Released: August 28, 2002)</dt><ul>
<li>- Added support for textareas with underscores ("_") in their names.</li>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 1.04</b> (Released: August 27, 2002)</dt><ul>
<li>Even more speed improvements (WYSIWYG editor is now much faster on older computers).</li>
<li>General code improvements and optimizations.</li>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 1.03</b> (Released: August 26, 2002)</dt><ul>
<li>Beta release only</li>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 1.02</b> (Released: August 21, 2002)</dt><ul>
<li>added editor_insertHTML() function. Developers can now easily add buttons that insert HTML or surround selected text with HTML.</li>
<li>removed unneeded debug code and comments to reduce editor.js file size (and load time). </li>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 1.01</b> (Released: August 20, 2002)</dt><ul>
<li>optimized code to improve speed (WYSIWYG editor is now much faster)</li>
<li>added addition event handlers to update UI on mouse events.</li>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
<p><dt><b>Version 1.00</b> (Released: August 19, 2002)</dt><ul>
<li>Initial Release</li>
</ul></p>
<!-- ---------------------------------------------------------------------------- -->
</dl>
<br><br><br>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -