blogilo
blogilocomposereditor.cpp
Go to the documentation of this file.
79 createActions(lstActions<<ComposerEditorNG::ComposerView::PasteWithoutFormatting<<lstActionsFormat);
84 mActSplitPost = new KAction( KIcon( QLatin1String("insert-more-mark") ), i18n( "Split text" ), this );
88 mActCode = new KAction( KIcon( QLatin1String("format-text-code") ), i18nc( "Sets text font to code style",
105 view()->evaluateJavascript( QString::fromLatin1( "setReadOnly(%1)" ).arg ( readOnly ? QLatin1String("true") : QLatin1String("false") ) );
113 QWebElementCollection images = view()->page()->mainFrame()->findAllElements(QLatin1String("img"));
152 QString html = const_cast<TextEditor*>( this )->evaluateJavaScript( "getHtml()", false ).toString();
166 const QString js = QString::fromLatin1( "document.execCommand(\"%1\", false, null)" ).arg ( cmd );
173 const QString js = QString::fromLatin1( "document.execCommand(\"%1\", false, \"%2\")" ).arg ( cmd ).arg ( arg );
~BlogiloComposerEditor()
Definition: blogilocomposereditor.cpp:96
void setReadOnly(bool _readOnly)
Definition: blogilocomposereditor.cpp:101
QString & remove(int position, int n)
void replaceImageSrc(const QString &src, const QString &dest)
Definition: blogilocomposereditor.cpp:129
void insertShortUrl(const QString &url)
Definition: blogilocomposereditor.cpp:177
void append(const T &value)
bool isEmpty() const
QWebFrame * mainFrame() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
Definition: blogilocomposerview.h:28
QVariant evaluateJavaScript(const QString &scriptSource)
QWebPage * page() const
QString attribute(const QString &name, const QString &defaultValue) const
Definition: bilbomedia.h:38
QString fromLatin1(const char *str, int size)
BlogiloComposerEditor(BlogiloComposerView *view, QWidget *parent)
Definition: blogilocomposereditor.cpp:34
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QList< BilboMedia * > getLocalImages()
Definition: blogilocomposereditor.cpp:109
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.