mSelectTextOnCommit( false ),
mUnderlinedPriorToPreEdit ( false ),
mCommitByKeyInput( false ),
- mPlaceHolderSet( false )
+ mPlaceHolderSet( false ),
+ mMarkUpEnabled( true )
{
// Updates the line height accordingly with the input style.
UpdateLineHeight();
void TextInput::SetPlaceholderText( const std::string& placeHolderText )
{
// Get the placeholder styled text array from the markup string.
- MarkupProcessor::GetStyledTextArray( placeHolderText, mStyledPlaceHolderText );
+ MarkupProcessor::GetStyledTextArray( placeHolderText, mStyledPlaceHolderText, IsMarkupProcessingEnabled() );
if( mStyledText.empty() )
{
{
DALI_LOG_INFO(gLogFilter, Debug::General, "SetText string[%s]\n", initialText.c_str() );
- GetStyledTextArray( initialText, mStyledText );
+ GetStyledTextArray( initialText, mStyledText, IsMarkupProcessingEnabled() );
if( mStyledText.empty() )
{
if ( !mStyledText.empty() && ( mCursorPosition > 0 ) )
{
DALI_ASSERT_DEBUG( ( 0 <= mCursorPosition-1 ) && ( mCursorPosition-1 < mStyledText.size() ) );
-
style = mStyledText.at( mCursorPosition-1 ).mStyle;
}
else // No text.
void TextInput::CreateTextViewActor()
{
mDisplayedTextView = Toolkit::TextView::New();
+ mDisplayedTextView.SetMarkupProcessingEnabled( mMarkUpEnabled );
mDisplayedTextView.SetParentOrigin(ParentOrigin::TOP_LEFT);
mDisplayedTextView.SetAnchorPoint(AnchorPoint::TOP_LEFT);
mDisplayedTextView.SetMultilinePolicy(Toolkit::TextView::SplitByWord);
return snapshotEnabled;
}
+void TextInput::SetMarkupProcessingEnabled( bool enable )
+{
+ mMarkUpEnabled = enable;
+}
+
+bool TextInput::IsMarkupProcessingEnabled() const
+{
+ return mMarkUpEnabled;
+}
+
void TextInput::SetScrollEnabled( bool enable )
{
if( mDisplayedTextView )