• Home
  • Try it
  • Download
  • Documentation
  • Enterprise
  • Develop
  • Forum
Welcome Guest! Login or Register
Version: 4.0b3 Headerimage

Get your own copy

Don't hesitate! Just download and test it all by yourself for free!

  • You are here:
  • TinyMCE API 3.x
  • tinymce
  • tinymce.dom
  • tinymce.dom.DOMUtils
  • rename
  • History
  • New wiki page

rename

  • Print
public function rename(elm:Element, name:String):Object
Renames the specified element to a new name and keep it's attributes and children.

Params

Name Type Description
elm Element Element to rename.
name String Name of the new element.

Returns

Object New element or the old element if it needed renaming.
  • TinyMCE
  • TinyMCE API 4.x
  • TinyMCE 3.x
  • TinyMCE API 3.x
    • tinymce
      • tinymce.dom
        • tinymce.dom.DOMUtils
          • DOMUtils
          • add
          • addClass
          • bind
          • create
          • createHTML
          • createRng
          • decode
          • destroy
          • encode
          • findCommonAncestor
          • fire
          • get
          • getAttrib
          • getAttribs
          • getClasses
          • getNext
          • getOuterHTML
          • getParent
          • getParents
          • getPos
          • getPrev
          • getRect
          • getRoot
          • getSize
          • getStyle
          • getViewPort
          • hasClass
          • hide
          • insertAfter
          • is
          • isBlock
          • isEmpty
          • isHidden
          • loadCSS
          • parseStyle
          • remove
          • removeClass
          • rename
          • replace
          • run
          • select
          • serializeStyle
          • setAttrib
          • setAttribs
          • setHTML
          • setOuterHTML
          • setStyle
          • setStyles
          • show
          • split
          • toHex
          • unbind
          • uniqueId
        • tinymce.dom.Element
        • tinymce.dom.EventUtils
        • tinymce.dom.ScriptLoader
        • tinymce.dom.Selection
        • tinymce.dom.Serializer
        • Event
      • tinymce.html
      • tinymce.plugins
      • tinymce.ui
      • tinymce.util
      • tinymce.AddOnManager
      • tinymce.ControlManager
      • tinymce.Editor
      • tinymce.EditorCommands
      • tinymce.Formatter
      • tinymce.Plugin
      • tinymce.Theme
      • tinymce.UndoManager
      • tinymce.WindowManager
      • DOM
      • EditorManager
    • tinymce
    • tinyMCEPopup
    • tinyMCE
  • MCImageManager
  • MCFileManager

Search

Search documentation.

Search

Need support?

If you need support, premium support is provided by our partners.

ask question
Back to site top

Provided for developers anywhere, everywhere, anytime and with any content.

  • Try it
  • Download
  • Documentation
  • Enterprise
  • Develop
  • Forum
Moxiecode

© 2003-2013 Moxiecode Systems AB.
All rights Reserved.
By being on this site, you allow cookies to be used.

Powered by Cachefly