defines.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2008 The Closure Library Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS-IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @fileoverview Text editor constants for compile time feature selection.
  16. *
  17. */
  18. goog.provide('goog.editor.defines');
  19. /**
  20. * @define {boolean} Use contentEditable in FF.
  21. * There are a number of known bugs when the only content in your field is
  22. * inline (e.g. just text, no block elements):
  23. * -indent is a noop and then DOMSubtreeModified events stop firing until
  24. * the structure of the DOM is changed (e.g. make something bold).
  25. * -inserting lists inserts just a NBSP, no list!
  26. * Once those two are fixed, we should have one client guinea pig it and put
  27. * it through a QA run. If we can file the bugs with Mozilla, there's a chance
  28. * they'll fix them for a dot release of Firefox 3.
  29. */
  30. goog.define('goog.editor.defines.USE_CONTENTEDITABLE_IN_FIREFOX_3', false);