The
scrivito("content")
function can be called on any jQuery instance, but it expects that the jQuery instance contains a single DOM element that was created by scrivito_tag
. An error is thrown if the function is applied to elements not generated with scrivito_tag
. If the jQuery instance contains no elements or more than one element, an error will be thrown, too.
The function returns the current value of the CMS field to which the DOM element relates. scrivito("content")
always returns what has been passed to scrivito("save")
most recently.
Currently,
scrivito("content")
supports fields of the string
, text
, html
, date
, enum
, and multienum
type. The linklist
type is not supported.